Difference Between Turn Around Time (TAT) and Waiting Time (WT) in CPU Scheduling (original) (raw)

Last Updated : 12 Jul, 2025

As for the evaluation of the performance of various algorithms in CPU scheduling, Turn Around Time (TAT) and Waiting Time (WT) used as measurement criteria. These two metrics are important because they define the effectiveness with which the processes go through a system. Turn Around Time means the total amount of time taken from the initiation of a process to the completion time of the process while the Waiting Time represents the total amount of time that a process has to wait in the queue before getting the CPU time. Comparing TAT and WT is useful in the overall enhancement of scheduling algorithms, and enhancement of the performance of the systems involved since client experience will be given adequate priority.

**Turnaround Time (TAT) in CPU Scheduling

  1. It is the time interval from the time of submission of a process to the time of the completion of the process.
  2. The difference b/w Completion Time and Arrival Time is called Turnaround Time.

**Completion Time (CT): This is the time when the process completes its execution.

**Arrival Time (AT): This is the time when the process has arrived in the ready state.

TAT = CT - AT

Advantages of Turn Around Time (TAT)

Disadvantages of Turn Around Time (TAT)

**Waiting Time (WT) in CPU Scheduling

  1. The time spent by a process waiting in the ready queue for getting the CPU.
  2. The time difference b/w Turnaround Time and Burst Time is called Waiting Time.

**Burst Time (BT): This is the time required by the process for its execution.

WT = TAT - BT

Now with Waiting Time and Burst Time, we can also calculate Turn Around Time via:

TAT = BT + WT

Advantages of Waiting Time (WT)

Disadvantages of Waiting Time (WT):

**Example:

Process Burst Time (in sec.)
P1 24
P2 3
P3 4

**Solution:Figure - Gantt Chart

Avg. TAT = (24 + 27 + 31) / 3 = 27.33 sec
Avg. WT = (0 + 24 + 27) / 3 = 17.0 sec

Difference Between Turnaround Time and Waiting Time

__mask-th-td__index=9____mask-th-td__index=10____mask-th-td__index=11____mask-th-td__index=12____mask-th-td__index=13____mask-th-td__index=14____mask-th-td__index=15____mask-th-td__index=16____mask-th-td__index=17____mask-th-td__index=18__

Conclusion

TAT and WT are two important parameters of CPU scheduling each having its utility in the process of scheduling. TAT assesses the total time taken in a process right from its submission up to its completion while on the other hand, WT calculates the time which is taken by a process to be in the ready queue for execution. These two measures should therefore be taken into account when analyzing or proposing improvements for the CPU scheduling algorithms with respect to performance, fairness and user perspective. An ideal scheduling algorithm must, therefore, try to optimize both TAT and WT in order to facilitate efficient functioning of processes.