How to Calculate Turnaround Time?

Learn how to calculate turnaround time of a process.

Calculate Average Turn Around Time in Process Scheduling

Turnaround time is the amount of time taken to complete a request. It is defined as the total time taken between the finishing time and start time. Turn around time is one of the metrics used to evaluate an operating systems scheduling algorithms.

This is a short tutorial to learn how to calculate turnaround time of a process.
How To Calculate Turnaround Time
Formula Used:
Turnaround Time = Finishing Time - Start Time
Average Turnaround Time Formula
Step 1:Let us consider the following process to find the turn around time.
Given, the starting and finishing time of the process as follows,
P1 → S.T = 1, P1 → F.T = 5
P2 → S.T = 2, P2 → F.T = 3
P3 → S.T = 3, P3 → F.T = 7
P4 → S.T = 4, P4 → F.T = 11
P5 → S.T = 8, P5 → F.T = 14
Where, P → Process, S.T → Start Time, F.T → Finishing Time respectively.
Process Scheduling Turnaround Time Calculation
Step 2: To calculate turnaround time of the above process, subtract the finishing time of each process with the start time.
P1 →T.T → 5 - 1 → 4
P2 →T.T → 3 - 2 → 1
P3 →T.T → 7 - 3 → 4
P4 →T.T → 11 - 4 → 7
P5 →T.T → 14 - 8 → 6
Trunaround Time Calculation
Step 3: Turnaround Time is given by adding all the turn around times of the process.
Turn Around Time = 4 + 1 + 4 + 7 + 6
Turn Around Time = 22
Average Turnaround Time Step3
Step 4: Average turn around time can be calculated by dividing the sum of the numbers by the total count.
Average Turn Around Time = 22/5 = 4.4
Average Turn Around Time = 4.4
Average Turnaround Time Step4