Turnaround time = Job completion time-job arrival time;
Take Ownership turnaround time = turnaround time/service time;
Average Turnaround time = Total job turnover time/number of jobs;
Average weighted turnaround time = total time with right turnover/number of jobs;
Cases:
There are 4 processes a,b,c,d, set them in sequence into the ready queue, because the time difference is very short can be regarded as simultaneous arrival. 4 processes are run 11,7,2, and 4 time units respectively, with a time slice of 1 per rotation. What is the average turnaround time for the four processes?
Resolution: Since it is considered to arrive at the same time, the arrival time is 0; According to the process rotation method (the time slice is 1):
The turnaround time for A is:b:20 c:7 d:14
A with the right turnaround time is: 24/11=2.18b:20/7=2.86 c:7/2=3.5 d:14/4=3.5
The average turnaround time is: (24+20+7+14)/4=16.25
The average take-right turnaround time is: (2.18+2.86+3.5+3.5)/4=3.01
Calculation of turnaround time and weighted turnaround time