Operating Systems

Introduction to Turnaround time

When a program is loaded into primary memory and becomes a process, the process can be in one of three basic states:

  • Running — the process's instructions are currently being executed by a CPU.
  • Ready — the process is able to run but is waiting for CPU time.
  • Waiting/Blocked — the process cannot currently continue because it is waiting for something, commonly an I/O operation or another event.

The total amount of time between a program process arriving in the system and completing its execution is called "turnaround time". Turnaround time is the difference between the completion time of the process and its arrival time: Turnaround Time = Completion Time − Arrival Time Turnaround time includes the time the process spends:

  • executing on the CPU
  • waiting for the CPU
  • blocked/waiting for I/O or other events