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?
- A. 5 ms
- B. 6 ms
- C. 5.4 ms
- 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
- Reference string: 1, 4, 1, 6, 2, 3, 6, 1, 2, 4, 3, 6, 4. With 4 frames, initially empty, how many page faults do FIFO, LRU and Optimal…
- Reference string: 1, 4, 1, 6, 2, 3, 6, 1, 2, 4, 3, 6, 4. With 3 frames, initially empty, how many page faults does FIFO replacement cause?
- Reference string: 8, 2, 9, 2, 4, 8, 9, 4, 2, 8, 4, 9, 2. With 3 frames, initially empty, how many page faults do FIFO, LRU and Optimal…
- Reference string: 8, 2, 9, 2, 4, 8, 9, 4, 2, 8, 4, 9, 2. With 4 frames, initially empty, how many page faults does LRU replacement cause?
- Reference string: 3, 8, 2, 8, 9, 3, 2, 9, 3, 8, 2, 9, 8. With 4 frames, initially empty, how many page faults do FIFO, LRU and Optimal…
- Reference string: 3, 8, 2, 8, 9, 3, 2, 9, 3, 8, 2, 9, 8. With 3 frames, initially empty, how many page faults does FIFO replacement cause?