CS FundamentalsHardTCS NQT · Infosys pattern

Processes (arrival, burst) in ms: P1 (arrival 0, burst 8), P2 (arrival 3, burst 3), P3 (arrival 4, burst 4), P4 (arrival 6, burst 7), P5 (arrival 8, burst 2). Round Robin scheduling is used with time quantum 3 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. 7 ms
  2. B. 9.2 ms
  3. C. 7.2 ms
  4. D. 8.2 ms

Correct answer: D. 8.2 ms

Tracing the ready queue with quantum 3 ms gives completion times P2 6, P5 17, P1 19, P3 20, P4 24, so waiting (turnaround − burst) averages to 8.2 ms. Scheduling the same processes under FCFS instead gives 7 ms.

More Operating Systems questions

Exams that ask this topic