#ANS1. (D) none of these
u took P2 twice in the quesn i am considering
P1 5
P2 8
P3 3
P4 5
Since it is SJF scheduling . the process will execute in following manner
p3->p1->p4->p2
so this is the problem of exponential avearge or it is also called 'Aging" problem.
Ʈ1= 10
so according to the formula of exponential average,
Ʈn=α*tn-1 +(1-α)Ʈn-1 where tn-1 = process burst time
Since it is SJF scheduling . the process will execute in following manner
p3->p1->p4->p2
so the burst time will be available in following manner
t1=3,t2=5,t3=5,t4=8
Ʈ2= (0.5)*3 + (1-0.5)10 [t1=3 because 1st p3 will execute and its burst time =3(given) ]
Ʈ2=6.5
similarly
Ʈ3=0.5*5+(0.5*6.5)
Since it is SJF scheduling . the process will execute in following manner
Ʈ3=5.75
similarly
Ʈ4=5.75
Ʈ4=5.375
Ʈ5= 6.6875
it doesnt match any options so D should be the right choice.
FOR ans 2
alpha is 1
when α=1, then Ʈn=tn-1
So, Ʈ5= t4=8.......
because If alpha is 1.0, then past history is ignored, and we assume the next burst will be the same length as the last burst. so the options are wrong and answer should be 8.