Answer» Correct Answer - Option 5 : Turnaround
The correct answer is Turnaround. - Turnaround time:
- Operating System(OS) process management, the difference between arrival time and time at which process first gets the CPU is called Turnaround time.
- Turnaround time is the total amount of time spent by the process from coming in the ready state for the first time to its completion.
- Turnaround time = Burst time + Waiting time
- or
- Turnaround time = Exit time - Arrival time
- For example, if we take the First Come First Serve scheduling algorithm, and the order of arrival of processes is P1, P2, P3 and each process is taking 2, 5, 10 seconds. Then the turnaround time of P1 is 2 seconds because when it comes at 0th second, then the CPU is allocated to it and so the waiting time of P1 is 0 sec and the turnaround time will be the Burst time only i.e. 2 seconds.
- The turnaround time of P2 is 7 seconds because the process P2 have to wait for 2 seconds for the execution of P1 and hence the waiting time of P2 will be 2 seconds. After 2 seconds, the CPU will be given to P2 and P2 will execute its task. So, the turnaround time will be 2+5 = 7 seconds. Similarly, the turnaround time for P3 will be 17 seconds because the waiting time of P3 is 2+5 = 7 seconds and the burst time of P3 is 10 seconds. So, the turnaround time of P3 is 7+10 = 17 seconds.
- Different CPU scheduling algorithms produce different turnaround time for the same set of processes.
- This is because the waiting time of processes differ when we change the CPU scheduling algorithm.
|