CS FundamentalsVery hardProduct-company MCQ pattern

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

Correct answer: A. 4.25 ms

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

More Operating Systems questions

Exams that ask this topic