Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What is the burst time, arrival time, exit time?


Asked by Keilani Glenn on Dec 13, 2021 FAQ



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.
Next,
While the I/O time is the time taken by the process to perform some I/O operation. In general, we ignore the I/O time and we consider only the CPU time for a process. So, Burst time is the total time taken by the process for its execution on the CPU. Arrival time is the time when a process enters into the ready state and is ready for its execution.
Subsequently, Burst time can be calculated as the difference of the Completion Time of the process and the Waiting Time, that is, Burst Time (B.T.) = Completion Time (C.T.) - Waiting Time (W.T.) The following table illustrates the Arrival and Burst time of three processes P1, P2 and P3.
In addition,
The I/O time is not taken into consideration. It is called as the execution time or running time of the process. The process makes a transition from the Running state to the Completion State during this time frame. Burst time can be calculated as the difference of the Completion Time of the process and the Waiting Time, that is,
In respect to this,
Here we are considering the arrival time of all processes to be 0. 1. Start Time: Time at which the execution of the process starts 2. Completion Time: Time at which the process completes its execution 3. Turnaround Time: Completion Time - Arrival Time 4.