CS FundamentalsHardTCS NQT · Infosys pattern

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

Correct answer: D. 5 ms

Tracing the ready queue with quantum 4 ms gives completion times P2 6, P3 10, P1 13, P4 21, so waiting (turnaround − burst) averages to 5 ms. Scheduling the same processes under FCFS instead gives 5 ms.

More Operating Systems questions

Exams that ask this topic