Open In App

ISRO | ISRO CS 2007 | Question 43

On a system using non-preemptive scheduling, processes with expected run times of 5, 18, 9 and 12 are in the ready queue. In what order should they be run to minimize wait time?
(A) 5, 12, 9, 18
(B) 5, 9, 12, 18
(C) 12, 18, 9, 5
(D) 9, 12, 18, 5

Answer: (B)
Explanation: The processes should execute in SJF manner to get the lowest waiting time. So, the order should be 5, 9, 12, 18.

Option (B) is correct.
Quiz of this Question

Article Tags :