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. The average turnaround time for each of the four processes is.
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.18 b: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