1,502 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

790
views
0 answers
1 votes
anisha007 asked Sep 25, 2018
790 views
What is the least number of context switching required for 'n' number of processes?
475
views
2 answers
1 votes
delxbydelt asked Mar 15
475 views
Consider a uniprocessor system with n processes in the ready queue. Round robin scheduling with time quantum x is used for process scheduling. Assume each process requires kx seconds to complete and ... nkx B) k(nx-1)C) k(nk+n)D) x(nk-n+1)
1.5k
views
1 answers
0 votes
anupamsworld asked Jun 6, 2022
1,497 views
Lets consider one situation where,OS is scheduling processes(P1,P2,P3...Pn) with Round Robin method and current running process is P1 and next scheduled process ... quantum=3unit for the given data below. AT=Arrival Time, BT=Burst Time
639
views
2 answers
1 votes
Tuhin Dutta asked Oct 8, 2017
639 views
I encountered 1 question on context switching in Made Easy test series where it is mentioned:Scheduling policy is preemptive priority. Context switch time is 1 unit. ... 1-time unit gap or they can be done simultaneously in the gantt chart?