Create an executable called ruin

Assignment Help Operating System
Reference no: EM131952424

Operating Systems Project Assignment: RUIN- the RU virtual memory simulation

In doing this project, abide by the RU Honor Code or you will fail the assignment and possibly the course. This is not a group assignment

Description

For this project, you will build upon your job simulator from project 3 to create an executable called RUIN. You will add the ability for the simulator to use virtual memory. Virtual memory is unlimited in this project. A page table will not be used for this project. A job is either in memory or it is not. The Most Recently Used algorithm will be used to determine which job will be switched into virtual memory if the system memory is full when a job is started or when the running job needs memory. The aspect measured by MRU will be the job that has been waiting the shortest amount of time to run. If there is a tie, choose the job that is farther away from the CPU from running. The running job can never be swapped to disk.

When a job is added to the system it is allocated memory. This means that VM may be allocated before the first time unit has been executed in the simulation.

When a job's memory is stored on disk, it is required to fetch its contents in 2 time units before it can execute. This time is subtracted from the burst size which is guaranteed to be at least 2 in this project. Note: this may cause another job to swap its memory to disk.

A program must fit in memory to run, if it uses more memory than the system has available it cannot be added to the run queue.

Output for the RUIN shell commands

The major commands for output are step and run from the previous project. You should add whether or not a job is in memory to your output.

Sample usage scenario (on an empty binary file called sample.bin)
./RUIN sample.bin
EnterCommand>setMemory 2
EnterCommand>addProgram first 3 1
EnterCommand>addProgram second 3 1
EnterCommand>addProgram third 3 1
EnterCommand>setBurst 3
EnterCommand>run
Advancing the system until all jobs finished
Current time <0>
Running job first has 3 time left and is using 1 memory resources.
The queue is:
Position 1: job second has 3 units left and is using 1
resource on disk.
Position 2: job third has 3 units left and is using 1
memory resources.
Current time <3>
Running job second has 3 time left and is using 1
resource on disk.
The queue is:
Position 1: job third has 3 units left and is using 1
memory resources.
Finished jobs are:
first 3 3
Current time <6>
Running job third has 3 time left and is using 1 memory
resources.
The queue is:
Position 1: job second has 2 units left and is using 1
memory resources.
Finished jobs are:
first 3 3
Current time <9>
Running job second has 2 time left and is using 1
memory resources.
The queue is: empty
Finished jobs are:
first 3 3
third 3 9
Current time <11>
Running job is empty
The queue is: empty
Finished jobs are:
first 3 3
third 3 9
second 3 11.

Reference no: EM131952424

Questions Cloud

Relationships outside the organization : However, expanding beyond the firm's boundaries also has drawbacks. Which of the following is an advantage of "buying" key relationships outside
Professor of management and industrial relations : Edited and submitted by Dr. Raymond L. Hilgert, Professor of Management and Industrial Relations, Washington
What is the slack time for each individual activity : Shirley has listed a number of activities that must be completed before a training program of this nature could be conducted.
What is meant by employee empowerment : What is meant by employee empowerment? What is the relationship between employee empowerment and teamwork?
Create an executable called ruin : Build upon your job simulator from project 3 to create an executable called RUIN. You will add the ability for the simulator to use virtual memory.
Describe the principal attributes of hersey leadership model : Describe the principal attributes of Hersey and Blanchard's situational leadership model. Is this model of leadership appropriate for a quality-minded company?
Negative message-employee feedback : For this bad news message, I want you to use the components of Bad News Messages as described in Chapter 11 and discussed in class.
What was shipmans murder weapon of choice : What was Shipman's murder weapon of choice and how did this weapon allow him to go undetected for so many years? atleast three paragraph
Determinants and influencing factors of performance : What are the determinants and influencing factors of performance? Please provide an explanation of each.

Reviews

Write a Review

Operating System Questions & Answers

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd