CS FundamentalsVery hardProduct-company MCQ pattern

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

Correct answer: A. 8 ms

Tracing the ready queue with quantum 2 ms gives completion times P2 9, P3 15, P1 20, P4 22, so waiting (turnaround − burst) averages to 8 ms. Scheduling the same processes under FCFS instead gives 6.25 ms.

More Operating Systems questions

Exams that ask this topic