B. 26.2 ms
sequence of execution,
p1 p2 p3 p4 p5 p1 p3 p4 p5 p3 p5 p3
CT 5 10 15 20 25 30 35 38 43 48 53 58
|
CT |
TT |
WT |
p1 |
30 |
30 |
20 |
p2 |
10 |
10 |
5 |
p3 |
58 |
58 |
38 |
p4 |
38 |
38 |
30 |
p5 |
53 |
53 |
38 |
Turnaround Time(TT) = Completion Time - Arrival Time ( every process has 0 AT )
Waiting Time(WT) = TT - Burst Time(BT)
find average of WT thats your answer