Question: We learned several CPU scheduling algorithm in class. Your task for this project is to simulate the round robin CPU scheduling with time quantum =

We learned several CPU scheduling algorithm in class. Your task for this project is to simulate the round robin CPU scheduling with time quantum =10ms algorithm using an input file containing jobs for CPU
Project Details:
Input:
Job.txt is provided as input file. Each line contains the name of the job, requesting time (millisecond since computer started) and duration (millisecond). For example:
Job 1,20,50
means a job for CPU called Job 1 is requested to run at 20ms since CPU started, and the duration of the job is 50ms.
Output:
Schedule job order similar to the following format
$>Job 1, scheduled for 4ms
$>Job 2, scheduled for 3ms
$>Job 1, scheduled for 5ms
$>Job 3, scheduled for 5ms
$>Job 2, scheduled for 3ms, completed
$>job 1, scheduled for 2ms, completed
Because round robin is deterministic, you should see the same job scheduling result every time you run your code.

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 Programming Questions!