CSS Optional — Paper-II, Section-A · P-II.III.II (cont.) · Scheduling-algorithm Gantt-chart numericals are the single most-repeated OS numerical type across past papers. The [Process Management] page gives the summary table; this page works every algorithm through a full worked numerical, step by step, so the method is drilled, not just memorized.
Always show all four columns (CT, TAT, WT) even if only the average is asked for — the intermediate values carry marks, and a correct Gantt chart alone earns partial credit even with an arithmetic slip later.
| Process | AT | BT |
|---|---|---|
| P1 | 0 | 5 |
| P2 | 1 | 3 |
| P3 | 2 | 8 |
| P4 | 3 | 6 |
FCFS simply runs processes in the order they arrive, no preemption:
Gantt: | P1(0-5) | P2(5-8) | P3(8-16) | P4(16-22) |
| Process | CT | TAT (CT-AT) | WT (TAT-BT) |
|---|---|---|---|
| P1 | 5 | 5 | 0 |
| P2 | 8 | 7 | 4 |
| P3 | 16 | 14 | 6 |
| P4 | 22 | 19 | 13 |
Avg TAT = 45/4 = 11.25 · Avg WT = 23/4 = 5.75. Notice P3's 6-unit wait and P4's 13-unit wait despite short arrival gaps — this pile-up behind long jobs is the convoy effect, FCFS's signature weakness.