UGC NET CS 2018System Software and Operating System › CPU SchedulingVerified
UGC NET CS 2018 PYQ: Consider the following set of processes and the length of CPU burst time given in milliseconds :…
Consider the following set of processes and the length of CPU burst time given in milliseconds :
$\begin{array}{|c|c|} \hline \text{Process} & \text{CPU Burst time (ms)} \\ \hline P_1 & 5 \\ \hline P_2 & 7 \\ \hline P_3 & 6 \\ \hline P_4 & 4 \\ \hline \end{array}$
Assume that processes being scheduled with Round-Robin Scheduling Algorithm with time quantum 4 ms. Then the waiting time for $P_4$ is ______ ms
- A0
- B4
- C12Correct answer
- D6
Answer
(C) 12
Approach
Simulate round robin with quantum 4 ms.
Reviewed by UGC IQ Editorial Team.