Assuming each process starts at the exact same time then your average waiting time is going to be
(0+1+2+3+4)/5 or 2
process 1 starts immedatily wait time is 0
process 2 starts at quantum 1, wait time is 1
process 3 starts at quantum 2, wait time is 2.
.
.
.
etc
I think that's how it worked anyway.. Been a while since I took that class.
|