Four jobs to be executed on a single processor system arrive at time 0 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
GATE CSE 1996Operating System › CPU SchedulingVerified
GATE CSE 1996 PYQ: Four jobs to be executed on a single processor system arrive at time 0 0 0 in the order A , B , C , D A, B,…
- A10
- B4
- C8
- D9Correct answer
Answer
(D) 9 9 9
Approach
Simulate round-robin scheduling with time quantum 1 unit. Keep all four jobs in a FIFO ready queue, and after each one-unit execution, requeue a job only if it still has remaining burst time.
Under round-robin with a quantum of 1, A is executed in three separate one-unit slices. The final slice for A runs from time 8 to time 9, making its completion time 9 time units. Thus option D is correct.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.