1,358 views
1 votes
1 votes

Q.Consider the processes P1, P2, P3, P4 whose arrival times are 0, 1, 2, 3 and Burst times are 5, 2, 13, 7. If the Context Switching time is 1 unit (ms), what is the average waiting time if Shortest Job Next scheduling algorithm is used? 

(a) 7.5 
(b) 6.25 
(c) 6.5 
(d) None

1 Answer

0 votes
0 votes

my ans is (0+4+12+4)/4=5 . 

P1 P2 P4 P3

0                                5                                 7                               14                                27

 5 +3*1ms(Context-Switch)=8ms.  Is this correct??

Related questions

1 votes
1 votes
0 answers
1
anisha007 asked Sep 25, 2018
739 views
What is the least number of context switching required for 'n' number of processes?