ITPEC FE Morning April 2022 Question 17

Source exam: ITPEC FE Morning April 2022Topic: Computer Systems & Hardware

ITPEC FE Morning April 2022 — Question 17 of 80

FCFS Scheduling — Waiting Time — calculate waiting time for each process under First-Come-First-Serve.

Given processes with arrival and burst times, simulate FCFS (no preemption, execute in arrival order):

ProcessArrivalBurstStartFinishWaiting
P103030
P225381
P3478154
P452151710

Formulas:
- start = max(finish_of_previous, arrival)

- waiting = start − arrival

- Equivalently: waiting = (finish − arrival) − burst

Why not others:
- (b) (0,2,4,5) — incorrect waiting for P2 (should be 1, not 2)

- (c) (0,3,5,7) — ignores arrival times, calculates as if all arrive at 0

- (d) (0,3,8,15) — these are start times, not waiting times

Key rule: In FCFS, waiting = start − arrival. Don't confuse waiting time with start time or turnaround time.

AI-generated — may contain errors

The original exam layout is preserved in the image so diagrams, formulas, tables, and code remain accurate.

This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official FE past-paper collection or Report an issue.