Computer Sciences > Gate 2016 Set-1 > Scheduling Algorithm
Consider an arbitrary set of CPU-bound processes with unequal CPU burst lengths submitted at the same time to a computer system. Which one of the following process scheduling algorithms would minimize the average waiting time in the ready queue?
A
Shortest remaining time first
B
Round-robin with time quantum less than the shortest CPU burst
C
Uniform random
D
Highest priority first with priority proportional to CPU burst length

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

Consider the following processes, with the arrival time and the length of the CPU burst given in milliseconds. The scheduling algorithm used is preemptive short...
#542 Fill in the Blanks
A palindrome is a word that reads the same forwards and backwards. In a game of words, a player has the following two plates painted with letters. From...
#1 MCQ
Which number does not belong in the series below? 2, 5, 10, 17, 26, 37, 50, 64
#4 MCQ

Related Topics

CPU scheduling algorithms average waiting time Shortest remaining time first GATE Computer Sciences 2016 GATE CS 2016 Set-1 Q20 process scheduling minimize waiting time operating systems scheduling CPU-bound processes

Unique Visitor Count

Total Unique Visitors

Loading......