CS FundamentalsHardProduct company interview · GATE level

Processes (arrival, burst) in ms: P1 (arrival 0, burst 10), P2 (arrival 1, burst 3), P3 (arrival 2, burst 7), P4 (arrival 4, burst 2), P5 (arrival 6, burst 6). Round Robin scheduling is used with time quantum 2 ms; a process that newly arrives joins the ready queue before a process whose quantum has just expired. What is the average waiting time?

  1. A. 10.4 ms
  2. B. 12.8 ms
  3. C. 10.8 ms
  4. D. 11.8 ms

Correct answer: D. 11.8 ms

Tracing the ready queue with quantum 2 ms gives completion times P4 10, P2 11, P5 25, P3 26, P1 28, so waiting (turnaround − burst) averages to 11.8 ms. Scheduling the same processes under FCFS instead gives 10.4 ms.

More Operating Systems questions

Exams that ask this topic