CS FundamentalsVery hardGATE CS (PYQ pattern)

Five processes with CPU bursts 5, 12, 3, 9 and 7 ms all arrive at time 0 in that order. Context switches are free. Among the quanta 2, 4, 6 and 12 ms, which gives the smallest average waiting time under Round Robin?

  1. A. 2 ms
  2. B. 4 ms
  3. C. 12 ms
  4. D. 6 ms

Correct answer: C. 12 ms

Average waiting times: q=2: 20.0 ms, q=4: 19.4 ms, q=6: 17.2 ms, q=12: 14.2 ms. Here q = 12 is exactly FCFS, which beats every smaller quantum on this burst set because interleaving delays the completion of each job.

More Operating Systems questions

Exams that ask this topic