CS FundamentalsHardGATE

Processes (arrival, burst) in ms: P1 (arrival 0, burst 8), P2 (arrival 3, burst 3), P3 (arrival 4, burst 4), P4 (arrival 6, burst 7), P5 (arrival 8, burst 2). They are scheduled by non-preemptive Highest Response Ratio Next, where response ratio = (waiting time + burst) / burst, recomputed whenever the CPU becomes free. What is the average waiting time?

  1. A. 5 ms
  2. B. 6 ms
  3. C. 5.4 ms
  4. D. 7 ms

Correct answer: B. 6 ms

Recomputing the ratio each time the CPU frees up and always picking the highest gives completion times P1 8, P2 11, P3 15, P5 17, P4 24, averaging 6 ms waiting. Plain non-preemptive SJF, which ignores the aging term, instead gives 5.4 ms.

More Operating Systems questions

Exams that ask this topic