CS 520 Introduction to Operating Systems Assignment

Assignment Help JAVA Programming
Reference no: EM133037343

CS 520 Introduction to Operating Systems - Stevens Institute of Technology

The Simulation Programming Project

Write a simulation of a (rather simplistic) system of Figure 1. You should re-use the core code of the "bus problem" as well as the code you have written for the bus simulation.

Create 10 processes of random execution time with lengths uniformly distributed between 2 and 4 minutes (use the uniform distribution method for random number generation).

- For each process, the times between I/O requests (i.e, CPU bursts) are distributed exponentially. The mean inter-I/O intervals for the processes are respectively 30ms, 35ms, 40ms, 45ms, 50ms, 55ms, 60ms, 65ms, 70ms, and 75ms.
- Each time an I/O is needed it takes precisely 60 ms
- A process, once it enters the system and before it exits it, can be either in the Ready Queue, or the I/O queue. (It is convenient to consider the process at the front of the Ready Queue to be serviced by the CPU, and the process at the front in the I/O Queue to be serviced by the channel that deals with all I/O devices; however, care should be taken to count the time of the process being serviced separately from waiting time.)

Correspondingly, your data objects will be the Process Control Block, the Ready Queue, and the I/O Queue along with the event object, which you should adapt from the Bus Simulation.

The task is to write the simulation of the system behavior for the whole period of the execution, while computing and collecting the following statistics: CPU utilization, throughput (i.e., the average number of processes completed in a unit of time), turnaround time (i.e., the average time it took to execute a process), and average waiting time.

a) Different simulation runs are to be performed with the First-Come-First-Served and Shortest-Job-First (SJF) algorithms. For simplicity, use the actual burst times that you have generated rather than predict them with exponential averaging.

b) Think about the conditions under which average waiting time increases with the decreasing quantum in Round Robin and under what conditions it decreases with the decreasing quantum. Write a statement describing these conditions. (Note: There is no need to use a quantum that is larger than the maximum CPU burst [computed on the set of all the processes] since in this case RR reduces to FCFS.)

c) Design experiments to test your statements in Part b). In the first experiment, the processes will satisfy the conditions you listed and will cause the average waiting time to increase with decreasing quantum. In the second experiment, the processes will satisfy the condition you listed that will cause the average waiting time to decrease with decreasing quantum. Each experiment should have about 5 runs, which differ only in the respective value of the quantum. Design some experiments with the following characteristics:

o At least 10 processes are used, each having many CPU bursts.
o The largest and smallest CPU burst averages differ by a factor of at least 2.
o The CPU utilization is between 50 and 90 percent.

Run the experiments using the simulator. For each experiment, create a log file containing the tabular data and Gantt charts for the runs.

Attachment:- Simulation Programming Project.rar

Reference no: EM133037343

Questions Cloud

How external and global environments influence : Critically discuss how external and global environments influence the ability of enterprise leaders to ensure efficiency and effectiveness within their organisa
Alternatives in regular business practice : Q1. Judges in many nations are trained for their offices in law school. They are hired into the judicial system and work their way up through that system.
Discuss in detail the implementation plan for idea : Pick a company for this project. This can be a real company that one of you works for or a fictitious company.
Formulate a mission and vision statement : i. Identify five (5) ?rms from different sectors of the economy and state their mission and vision statements.
CS 520 Introduction to Operating Systems Assignment : CS 520 Introduction to Operating Systems Assignment Help and Solution, Stevens Institute of Technology - Assessment Writing Service
Analysis of relevant cash flows : Analysis of relevant cash flows and the capital budgeting process and provide some insight to the firm's various sources of long-term financial planning
Key performance measures in functional department : a. Identify and discuss the primary functions and key performance measures in each functional department
Explain the difference between net income and net cash flow : Explain the difference between net income and net cash flow. Why are they different. Give an example from an actual company's financial statements
What is Koch adjusted basis in machine after the exchange : Peptin traded machine 1 for machine 2 when the fair market value of both machines was $50,000. What is Koch adjusted basis in machine after the exchange

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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