CS FundamentalsVery hardAmazon · Microsoft MCQ pattern

Processes (arrival, burst) in ms: P1 (arrival 0, burst 6), P2 (arrival 2, burst 9), P3 (arrival 3, burst 1), P4 (arrival 5, burst 5). 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. 7.5 ms
  2. B. 6.75 ms
  3. C. 8.5 ms
  4. D. 6.5 ms

Correct answer: A. 7.5 ms

Tracing the ready queue with quantum 2 ms gives completion times P3 7, P1 13, P4 20, P2 21, so waiting (turnaround − burst) averages to 7.5 ms. Scheduling the same processes under FCFS instead gives 6.75 ms.

More Operating Systems questions

Exams that ask this topic