in Operating System
1,159 views
1 vote
1 vote
There are six processes waiting in ready queue with the burst time are 9 ,  7 , 4 , 2 , 1 and x . In what order should they run to minimize the average waiting time when the value of x is either 5 or 6.

a) 1 , 2 , 4 , x , 7 , 9

b) 9 , 7 , x , 4 , 2 , 1

c) x , 7 , 9 , 4 , 2 , 1

d) order cannot be decided
in Operating System
1.2k views

1 Answer

5 votes
5 votes
Best answer

We get the best average waiting time for the sequence, in which we process the request in increasing order of burst time. 

Hence Option a) 1,2,4,x,7,9 will give the desired result. 

selected by
by

2 Comments

Do we have any particular cpu scheduling algorithm which can minimize the average waiting time?
0
0
SJF or SRTF which is your question itself
0
0

Related questions