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

Directions (Q96–100): Consider the following set of processes with arrival time and CPU burst time given in milliseconds (ms):

ProcessArrival TimeBurst Time
P105
P223
P322
P453
P561

Calculate the average response time for these processes with the non-preemptive priority scheduling algorithm. Priorities are as follows; consider that all the processes arrive at time 0 (low numbers represent high priority).
ProcessBurst TimePriority
P153
P231
P325
P434
P512

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

Show answer & explanation

Correct answer: A. 5.6 ms

Explanation

Order by priority: P2 (0–3), P5 (3–4), P1 (4–9), P4 (9–12), P3 (12–14). Response time = start time − arrival (0): 0, 3, 4, 9, 12. Average = 28/5 = 5.6 ms.

More System Software and Operating System questions