Guide · 2026-11-26

How to Draw a Gantt Chart Using Arrival and Burst Times

You have each process’s arrival time and burst time, but turning those numbers into a Gantt chart can still feel confusing. A process may arrive while another is running, and the chart changes depending on which scheduling rule you follow. Guessing the order can produce incorrect completion and waiting times, even when your arithmetic looks right. But here’s the truth: arrival and burst times alone do not determine one unique chart. You also need the scheduling algorithm and, sometimes, a rule for ties. I’ll show you a reliable drawing method, then work through examples for FCFS, non-preemptive SJF, and preemptive SRTF. You’ll see how to mark idle time, handle interruptions, and check your calculations before using the chart to find scheduling metrics.

How to Draw a Gantt Chart from Arrival and Burst Times

To draw a correct chart, first choose a CPU scheduling algorithm. Then place processes on a timeline in the order that algorithm selects them, using arrival times to determine when they become available and burst times to track how long they need the CPU.

  1. List each process’s arrival and burst times. Arrival time is when a process becomes ready to run. Burst time is the total CPU time it needs.
  2. Choose the scheduling rule. FCFS runs ready processes in arrival order. SJF selects the available process with the shortest burst. SRTF can interrupt a running process when a process with a shorter remaining time arrives.
  3. Start at time zero or the first arrival. If no process has arrived yet, show an idle interval until the first arrival time.
  4. Select the next process using the chosen rule. Only processes that have arrived are eligible. Do not schedule a process before its arrival.
  5. Mark each start and finish time. For a process that runs without interruption, add its burst time to its start time. For preemptive scheduling, track each running segment and its remaining time.
  6. Continue until every process finishes. Label each segment with the process name and each boundary with its time.
  7. Check the result. Every process must receive its full burst time, and no process can run before arriving.

For example, if a process starts at time 3 and needs 4 CPU units, its uninterrupted segment ends at time 7. You would label the segment with the process name and mark 3 and 7 at its boundaries.

What Arrival and Burst Times Tell You

Arrival and burst times describe when a process joins the ready queue and how much CPU time it requires. They do not, by themselves, tell you which process runs first when several are ready. That choice comes from the scheduling policy.

Imagine process A arrives at time 0 with a burst of 6, while process B arrives at time 2 with a burst of 2. Under FCFS, A keeps the CPU until time 6. Under SRTF, B can interrupt A at time 2 because B has the shorter remaining time.

Here’s why: the same process details can produce different timelines under different policies. Before drawing, check the question for terms such as FCFS, SJF, SRTF, priority scheduling, or round robin. If the policy is missing, state the assumption you use.

Worked Example: Compare FCFS, SJF, and SRTF

Use these four processes to see how the scheduling rule changes the chart. The burst values are CPU time units.

ProcessArrival timeBurst time
P107
P224
P341
P454

FCFS: Keep the arrival order

At time 0, only P1 has arrived, so it runs from 0 to 7. By then, P2, P3, and P4 are ready. FCFS chooses them in arrival order, giving P2 the next 4 units, then P3, then P4.

Timeline: 0–7 P1 | 7–11 P2 | 11–12 P3 | 12–16 P4

Each process runs to completion once it gets the CPU. The chart has no interruptions, and its finish times are 7, 11, 12, and 16.

Non-preemptive SJF: Pick the shortest available burst

At time 0, P1 is the only available process, so it runs through time 7. The other three processes are ready when P1 finishes. P3 has the shortest burst, so it runs next. P2 and P4 both need 4 units; use earlier arrival as the tie-breaker.

Timeline: 0–7 P1 | 7–8 P3 | 8–12 P2 | 12–16 P4

Non-preemptive SJF does not stop a process after it begins. Even though P3 arrives while P1 is running, it waits until P1 finishes.

SRTF: Reconsider the choice when a process arrives

SRTF selects the process with the shortest remaining time and allows preemption. P1 starts at time 0. When P2 arrives at time 2, P1 has 5 units left, while P2 needs 4, so P2 takes the CPU.

At time 4, P3 arrives with a burst of 1. P2 has 2 units left, so P3 runs from 4 to 5. P2 then resumes and finishes at 7. P4 is ready by then, but P1 has only 5 units remaining and P4 needs 4, so P4 runs next.

Timeline: 0–2 P1 | 2–4 P2 | 4–5 P3 | 5–7 P2 | 7–11 P4 | 11–16 P1

The split segments matter: P1 and P2 each appear twice because SRTF interrupts and later resumes them. The total CPU time assigned to each process must still match its burst time.

How to Mark Idle Time, Preemption, and Ties

If the first process arrives after time zero, draw an idle segment before it starts. For example, if the first arrival is at time 3, show 0–3 Idle before the first process. Leaving out that gap shifts every later time and can make your calculations wrong.

With preemptive scheduling, add a boundary whenever the running process changes. Keep track of the remaining burst after each segment. If a process needed 6 units and ran for 2, it has 4 units left when it resumes.

You might be wondering: what if two processes have the same arrival time or equal remaining time? Follow the stated tie-breaker. If none is given, choose a consistent rule, such as earlier arrival or lower process label, and note that assumption. A clear rule makes your chart repeatable.

Calculate Completion, Turnaround, and Waiting Times

Once the chart is complete, record each process’s final finish time. That is its completion time, even if it ran in multiple segments. Then use these formulas:

For the SRTF example, P2 completes at time 7. Its turnaround time is 7 − 2 = 5, and its waiting time is 5 − 4 = 1. Its two CPU segments add up to its full burst of 4 units.

For P1, completion is time 16, arrival is 0, and burst is 7. Its turnaround time is 16, while its waiting time is 16 − 7 = 9. A quick check is to confirm that waiting time is not negative and that every process’s burst is fully accounted for.

ONES.com Solution: Organize Scheduling Lessons and Team Work

ONES.com is a unified platform for project management and knowledge management, powered by ONES Assistant. For CPU scheduling exercises, you still draw and verify the chart using the algorithm required by the problem. ONES.com can help a class, study group, or engineering team organize the surrounding work, such as assigning practice tasks and keeping explanations together.

ONES.com product screenshot

Core capabilities

Application scenarios

A lecturer can assign FCFS and SJF exercises in ONES Project, then use workflow stages to show which solutions need review. Explanations of tie-breaking rules can be organized in ONES Wiki for students to consult during later exercises.

An engineering team studying operating-system concepts can plan a short learning sprint, assign chart exercises, and track completion. With Cloud, On-Premise, Private Cloud, and Air-gapped deployment options, teams can consider an environment that fits their operational requirements. The free plan supports up to 30 seats. ONES.com offers feature parity between its cloud and self-hosted versions.

ONES.com helps manage the work around scheduling education; it is not a CPU scheduling simulator, and these capabilities do not calculate the Gantt chart for you.

Common Challenges and Practical Fixes

Drawing a process before it arrives

Problem: A short-burst process looks attractive, so you place it first even though its arrival time is later. Fix: At every decision point, consider only processes that have already arrived. If none is ready, draw an idle interval.

Using the wrong scheduling rule

Problem: You sort every process by burst time, even though the question asks for FCFS. Fix: Write the algorithm name above your chart and apply its selection rule at each boundary.

Forgetting remaining time after preemption

Problem: An interrupted process receives its full burst again when it resumes. Fix: Subtract the time it already ran, then compare only its remaining time with the other available processes.

Leaving tie-breaking unexplained

Problem: Two processes qualify equally, so the chart’s next choice is unclear. Fix: Follow the given tie rule. If there is none, state a consistent assumption next to your work.

FAQs

Can I draw a Gantt chart using only arrival and burst times?

You can list when processes become ready and how much CPU time they need, but those values do not define one unique order. You also need a scheduling algorithm, such as FCFS, SJF, or SRTF. If the exercise does not name one, ask for clarification or state the policy you assume before drawing.

What is the difference between burst time and execution time on the chart?

Burst time is the total CPU time a process needs. A chart segment shows the time that process actually runs during one uninterrupted interval. Under a non-preemptive policy, a process may have one segment. Under a preemptive policy, several segments can add up to the same total burst time.

How do I show a process that arrives after time zero?

If no process is ready at the start, mark the CPU as idle until the earliest arrival. For example, if the first process arrives at time 3, draw an idle segment from 0 to 3. Then apply the scheduling rule to the processes that are ready.

How can I check whether my chart is correct?

Confirm that no process starts before its arrival and that each process receives its full burst time across all segments. Check every boundary against the scheduling rule, especially after a new arrival or a process completion. Finally, calculate waiting time and turnaround time to catch arithmetic errors.

Conclusion

To draw a reliable CPU scheduling chart, identify the scheduling algorithm first, then use arrival times to decide which processes are eligible and burst times to track their required CPU work. Mark idle gaps, show every preemption, and state how you resolve ties.

That small routine prevents the most common mistakes and makes completion, turnaround, and waiting times easier to verify. If you are teaching or coordinating scheduling exercises, ONES.com can organize assignments and shared explanations alongside the calculations.