CS FundamentalsHardGATE
Processes (arrival, burst) in ms: P1 (arrival 0, burst 5), P2 (arrival 2, burst 2), P3 (arrival 4, burst 9), P4 (arrival 5, burst 4), P5 (arrival 8, burst 3). 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?
- A. 4.1 ms
- B. 3.6 ms
- C. 4.6 ms
- D. 2.6 ms
Correct answer: B. 3.6 ms
Recomputing the ratio each time the CPU frees up and always picking the highest gives completion times P1 5, P2 7, P4 11, P5 14, P3 23, averaging 3.6 ms waiting. Plain non-preemptive SJF, which ignores the aging term, instead gives 3.6 ms.
More Operating Systems questions
- 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). They…
- 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)…
- Processes (arrival, burst, priority — a smaller number means higher priority): P1 (arrival 0, burst 9, priority 1), P2 (arrival 2, burst…
- 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). They…
- 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)…
- Processes (arrival, burst) in ms: P1 (arrival 0, burst 3), P2 (arrival 1, burst 7), P3 (arrival 2, burst 1), P4 (arrival 4, burst 5), P5…