CS FundamentalsVery hardAmazon · Microsoft MCQ pattern

Processes (arrival, burst) in ms: P1 (arrival 0, burst 6), P2 (arrival 1, burst 8), P3 (arrival 2, burst 7), P4 (arrival 3, burst 3). 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. 11.75 ms
  2. B. 8.75 ms
  3. C. 12.75 ms
  4. D. 10.75 ms

Correct answer: A. 11.75 ms

Tracing the ready queue with quantum 4 ms gives completion times P4 15, P1 17, P2 21, P3 24, so waiting (turnaround − burst) averages to 11.75 ms. Scheduling the same processes under FCFS instead gives 8.75 ms.

More Operating Systems questions

Exams that ask this topic