Question: 8 points Five jobs P 1 , . . . P 5 arrive at a processor at time 0 , 1 , 2 , 3

8 points
Five jobs P1,... P5 arrive at a processor at time 0,1,2,3,4 and the lengths of their CPU bursts are 8,2,3,1,5, respectively. Draw the Gantt Chart and calculate the average
waiting time and the average response time for the following policies:
SJF (Shortest-Job-First) scheduling policy.
SRTF (Shortest-Remaining-Time-First) scheduling policy.
P-PS (Preemptive priority) scheduling policy with priority assignment (3,2,1,4,3) to (P1,dots,P5), where priority 1 is the highest priority.
RR (Round-Robin) scheduling policy with a time quantum of 2.
Drag n' Drop here or Browse
We consider the above question for a simplified MLFQ scheduling policy with simplification. We ignore priority boost and I/O and the detailed policy is as follows: A new job
enters Q1 in Round-Robin (RR). When it gains CPU, job receives 1 time unit; If it does not finish in 1 time unit, it is moved to Q2. At Q2, job is again served in RR and receives 2
time units. If it still does not complete, it is preempted and moved to Q3. Run RR in Q3 with quantum size 4.
8 points Five jobs P 1 , . . . P 5 arrive at a

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!