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):
![](http://aliyunzixunbucket.oss-cn-beijing.aliyuncs.com/csdn/d8d35e75-74c7-4d04-8632-19e0c5e2bba7?x-oss-process=image/resize,p_100/auto-orient,1/quality,q_90/format,jpg/watermark,image_eXVuY2VzaGk=,t_100,g_se,x_0,y_0)
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