Correct : S
Given:
An arbitrary set of CPU-bound processes with unequal burst lengths.
All processes arrive at the same time (arrival time t = 0).
To find:
The scheduling algorithm that minimizes the average waiting time in the ready queue.
Solution:
Okay, let's think about which algorithm gives the minimum average waiting time.
I know that Shortest Job First (SJF) is provably optimal for giving the minimum average waiting time among all scheduling algorithms.
Here, it says all processes are submitted at the same time.
When all processes arrive at time t = 0, no new process arrives later with a shorter burst to cause preemption.
So, Shortest Remaining Time First (SRTF), which is the preemptive version of SJF, behaves exactly like non-preemptive SJF.
Both will run the process with the smallest CPU burst first, then the next smallest, and so on.
Let's check the other options to be completely sure.
Option B is Round-robin, which shares the CPU and increases the average waiting time compared to SJF.
Option C is uniform random scheduling, which is clearly not optimal.
Option D assigns higher priority to processes with longer bursts, which turns it into Longest Job First (LJF), giving the worst average waiting time.
Hence, Shortest Remaining Time First gives the minimum average waiting time.
Answer: (A) Shortest remaining time first
Similar Questions
Total Unique Visitors