GATE CS 2017, set 2 · Question 51 · Operating System · Numerical answer (NAT) · 2 marks · no negative marks

Consider the set of processes with arrival time (in milliseconds), CPU burst time (in milliseconds), and priority (0 is the highest priority) shown below. None of the processes have I/O burst time.
The average waiting time (in milliseconds) of all the processes using preemptive priority scheduling algorithm is ______.

ProcessArrival TimeBurst TimePriority
P₁0112
P₂5280
P₃1223
P₄2101
P₅9164
Answer

Answer 29

Answer from the official GATE CS 2017 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes