UGC NET CS 2019System Software and Operating System › CPU SchedulingVerified
UGC NET CS 2019 PYQ: Given $\text{CPU}$ time slice of $2\text{ms}$ and following list of processes. $$\begin{array}{ccc}…
Given $\text{CPU}$ time slice of $2\text{ms}$ and following list of processes.
$$\begin{array}{ccc} \text{Process} & \text{Burst time} & \text{Arrival time} \\ & \text{(ms)} \\ p_1 & 3 & 0 \\ p_2 & 4 & 2 \\ p_3 & 5 & 5 \end{array}$$
Find average turnaround time and average waiting time using round robin $\text{CPU}$ scheduling?
- A$4, 0$
- B$5.66, 1.66$Correct answer
- C$5.66, 0$
- D$7, 2$
Answer
(B) $5.66, 1.66$
Approach
Simulate round robin with quantum 2 and compute turnaround and waiting times.
Reviewed by UGC IQ Editorial Team.