In Round Robin the processor time is shared amoung all the processes and the
shared processor time is called as time slice.
No. of time slice for process (n) = burst time process (n)/time slice
Waiting time for process (n) = waiting time of process(n-1)+ burst time of process(n-1 )
+ the time difference in getting the CPU from process (n-1)
Turnaround time for process(n) = waiting time of process(n) + burst time of process(n)
+ the time difference in getting CPU from process(n).
Average waiting time = Total waiting Time / Number of process
Average Turnaround time = Total Turnaround Time / Number of process Step
|