All mock tests are FREE till 31 December — register to save your progress

Directions (Q96–100): Consider the following set of processes with arrival time and CPU burst time given in milliseconds (ms):

ProcessArrival TimeBurst Time
P105
P223
P322
P453
P561

When we apply the Shortest Job First (SJF) scheduling algorithm, process P2 faces partial starvation and waits a longer time to execute. Which one of the following algorithms addresses this problem?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. Highest Response Ratio Next

Explanation

HRRN uses the ratio (waiting + burst)/burst, so a process's priority rises the longer it waits. This removes SJF's starvation of longer jobs while still favouring short ones.

More System Software and Operating System questions