Given this table :
Those are the time lines (time slice = 4) :
|p1|p1|p2|p3|p4|p5|p1|p2|p3|p4|p5|p2|p3|p4|p5|p2|p3|p4|p5|p2|p3|p3|
0 4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 69 72 75 79 80
Is there a simple way to calculate the average waiting time ?
Thanks
Note: that there are several finish times for each process !
Note2 : This question also involved priority algorithm as a side exercise , please disregard the priority column for the Round robin algorithm
priority
algorithm as a side exercise , please disregard the priority column for the Round robin algorithm – Impossible