All mock tests are FREE till 31 December — register to save your progress

Given the following processes with their times and priority (lower number indicates higher priority)

Figure

Which of the following is a value of average waiting time using priority scheduling algorithm?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. 8.2

Explanation

All arrive at 0. Order by priority: P2 (0–1), P5 (1–6), P1 (6–16), P3 (16–18), P4 (18–19). Waiting = 0 + 1 + 6 + 16 + 18 = 41; average 41/5 = 8.2.

More System Software and Operating System questions