Four jobs to be executed on a single processor system arrive at time in the order . Their burst CPU time requirements are time units respectively. The completion time of under round robin scheduling with time slice of one time unit is
View worked solution
Answer: D
To find the completion time of job under Round Robin (RR) scheduling with a time quantum () of time unit, we can trace the execution order using a Gantt chart.
Given Data:
- Jobs: (arriving at time in this order)
- Burst Times: , , ,
- Time Quantum ():
Execution Trace:
Initially, at , the ready queue is: [A, B, C, D].
- Interval : executes for unit. Remaining burst of .
Ready queue becomes:[B, C, D, A] - Interval : executes for unit. Remaining burst of .
completes at . Ready queue becomes:[C, D, A] - Interval : executes for unit. Remaining burst of .
Ready queue becomes:[D, A, C] - Interval : executes for unit. Remaining burst of .
completes at . Ready queue becomes:[A, C] - Interval : executes for unit. Remaining burst of .
Ready queue becomes:[C, A] - Interval : executes for unit. Remaining burst of .
Ready queue becomes:[A, C] - Interval : executes for unit. Remaining burst of .
Ready queue becomes:[C, A] - Interval : executes for unit. Remaining burst of .
Ready queue becomes:[A, C] - Interval : executes for unit. Remaining burst of .
completes at .
Thus, the completion time of job is .
Free practice · Your answers on this page are not saved.
