Question: Objectives The purpose of this programming project is to gain some experience involving the design of a few OS components by simulation. These components include

Objectives The purpose of this programming project is to gain some experience involving the design of a few OS components by simulation. These components include CPU management and scheduling, process management, system queues, system statistics gathering and reporting.

What to do Write a Java program to simulate the above system. The input to the program should be through command-line parameters as follows: 1. The total number of time steps for the run, S, integer > 100; default = 100. 2. The ready queue type, integer, 1:FCFS, 2:SJF, 3:RR, 4:MLFQ, 5:lottery; default = 1. 3. The minimum quantum size, Q, to use as a basis of RR and MLFQ, integer > 0; default = 1. 4. The maximum number of Type-4 jobs, N, integer [0 .. 100]; default = 5. 5. The expected number of new jobs arriving per time unit, v, double [0 .. 1]; default = 0.5. 6. If implemented, the minimum number of tickets, t, integer > 0; default = 5. 7. If implemented, the maximum number of tickets, T, integer > t; default = 100. 8. If implemented, the speed of giving/taking tickets, c , multiple of Q, integer > 0; default = 0. Choose an appropriate value for Q and v, Let N=20 and S=100,000 and run your program 5 times using the same values of Q, v, N, and S but each time with a different Queue type. Also, if implemented, choose suitable values for lottery parameters, t, T and c. Show the contents of all system queues, only for the first 20 time steps. After each run, your output should also show all your input values, the queue type used, and all the statistics reported by the statistics-collecting module.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!