edited by
315 views
0 votes
0 votes

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?

  1. $4, 0$
  2. $5.66, 1.66$
  3. $5.66, 0$
  4. $7, 2$
edited by

1 Answer

0 votes
0 votes

Round Robin cpu scheduling using $2$ ms TQ:

$\small \begin{array} {|c|c|c|c|c|c|} \hline \textbf{Process} & \textbf{Arrival Time} & \textbf{Burst Time} & \textbf{Completion Time} & \textbf{Turn Around Time} & \textbf{Watting time} \\\hline P_{1} & 0 & 3 & 5 &  5 & 2 \\ P_{2} & 2 & 4 & 7 & 5 & 1 \\ P_{3} & 5 & 5 & 12 & 7 & 2 \\\hline \end {array}$

  1. Average Turn around time $=\frac{5+5+7}{3}=5.66$ ms
  2. Average wanting time $=\frac{2+1+2}{3}=1.66$ ms

Note: 1) TAT= CT-AT

         2) WT= TAT-BT

Option $(B)$ is correct.

Related questions

1 votes
1 votes
2 answers
1
4 votes
4 votes
6 answers
3
soujanyareddy13 asked May 12, 2021
1,859 views
The Boolean expression $AB+A \overline{B}+\overline{A}C+AC$ is unaffected by the value of the Boolean variable _________.$A$$B$$C$$A, B$ and $C$