Operating Systems · CPU Scheduling
Process Parameters: Arrival Time and Burst Time
Overview
Every CPU scheduling algorithm and every scheduling numerical depends on the times associated with a process.
The first two timing parameters are arrival time and burst time: arrival time says when a process becomes ready, and burst time says how much CPU time it needs to finish.
Key concepts
- Process parameters (timing parameters): the times associated with a process. They are the inputs used by every scheduling algorithm and every scheduling numerical.
- Arrival time (AT): the time at which the process enters the ready queue, i.e. the time at which it enters the ready state. It is the time at which the process becomes ready to be executed (ready, but not yet running).
It is loosely called the ready queue time, because all processes that arrive wait in the ready queue until the CPU is given to them. - Burst time (BT): the amount of time required by a process to finish, measured as CPU time. It is how much CPU time must be dedicated to the process so that it can complete.
Burst time is CPU time, not the total lifetime of the process. - Timing parameters studied together: after arrival time and burst time, the remaining timing parameters are completion time, turnaround time and waiting time.
How it works
- Every process that becomes ready has an arrival time — the instant it joins the ready queue.
- From that instant until it terminates, the process needs a certain amount of CPU execution; that demand is its burst time.
- Scheduling algorithms use these two parameters to decide the order of execution (for example, which process has come first, or which needs the CPU for the shortest or longest time).
- Practical difficulty with burst time: stating the exact burst time of a process before running it is very hard. Giving the burst time means saying how long the process will take to execute before executing it, which is tricky.
- Consequence: many scheduling problems are built on burst time, and many scheduling methods are based on burst time, but those methods cannot be implemented in reality, because burst time is not known in advance before the process starts.
Worked examples
No numerical example is given in this section. In a scheduling numerical, the arrival times and burst times are given to you in the problem — exactly the information a real OS does not have.
Revision summary
- Arrival time = time at which the process enters the ready state / ready queue (time it is ready to be executed).
- Burst time = amount of CPU time required by the process to finish.
Make a special note that burst time is CPU time. - Burst time is required before execution in almost all scheduling algorithms, yet it is not known in advance in a real system — this is the central gap between scheduling theory and real implementation.
- Both parameters are inputs to every scheduling numerical.
- Do not confuse burst time with the total lifetime of the process.
Previous-year exam insights
- For n processes on a single processor, the number of possible different schedules (orderings of the processes) is n! (n factorial), since any permutation of the n processes is a valid execution order.
Asked inISRO 2013 - Turnaround time (TAT) = Completion time (CT) − Arrival time (AT);
waiting time (WT) = Turnaround time − Burst time (BT);
these are the standard derived timing parameters computed from AT and BT. - Response time is the time from arrival to the first time the process gets the CPU; it differs from waiting time in preemptive/round-robin scheduling.
- Burst time is a property of the process's CPU requirement (CPU time), while arrival time is a property of when it enters the ready queue; I/O-bound processes have many short CPU bursts, CPU-bound processes have few long bursts.
- In non-preemptive scheduling a process runs to completion once dispatched, so the schedule is a permutation of processes; in preemptive scheduling the number of possible interleavings is far larger than n!.
- CPU utilization = (total useful CPU busy time / total elapsed time) × 100%, and throughput = number of processes completed per unit time;
both are standard scheduling performance metrics.