Calculation of turnaround time and weighted turnaround time

Source: Internet
Author: User

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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.