• recategorized by
18,875 views
42 42 votes

Assume that  the following jobs are to be executed on a single processor system$$\begin{array}{|c|c|} \hline  \textbf{Job Id} & \textbf{CPU Burst Time} \\\hline \text{p} & 4 \\\hline  \text{q} & 1 \\\hline \text{r} & 8 \\\hline \text{s} & 1 \\\hline \text{t} & 2 \\\hline \end{array}$$The jobs are assumed to have arrived at time $0^+$ and in the order $p,q,r,s,t$. Calculate the departure time (completion time) for job $p$ if scheduling is round robin with time slice $1$

  1. $4$
  2. $10$
  3. $11$
  4. $12$
  5. None of the above

4 Answers

Best answer
43 43 votes
Answer: (C)

Execution order: $p\;q\;r\;s\;t\;p\;r\;t\;p\;r\;\mathbf{p}\;r\;r\;r\;r\;r$
• edited by
9 9 votes

Round Robin

TQ=1

Arrival time of all the process is same

gantt chart
 p  q    r   s   t   p  r  t  p  r  p
0 1 2 3 4 5 6 7 8 9 10     11

Answer - option c

Answer:
Position:
Show:

Related questions

34 34 votes
5 answers 5 answers
35.5k
35.5k views
Kathleen asked Sep 29, 2014
35,505 views
Consider a system having $m$ resources of the same type. These resources are shared by $3$ processes $A, B$, and $C$ which have peak demands of $3, 4$, and $6$ respective...
48 48 votes
2 answers 2 answers
18.6k
18.6k views
Kathleen asked Sep 29, 2014
18,594 views
The root directory of a disk should be placedat a fixed address in main memoryat a fixed location on the diskanywhere on the diskat a fixed location on the system diskany...
37 37 votes
6 answers 6 answers
28.0k
28.0k views
Kathleen asked Sep 29, 2014
28,042 views
A certain moving arm disk storage, with one head, has the following specifications:Number of tracks/recording surface $= 200$Disk rotation speed $= 2400$ rpmTrack storage...
29 29 votes
6 answers 6 answers
9.9k
9.9k views
Kathleen asked Sep 29, 2014
9,912 views
Write a concurrent program using $\text{parbegin-parend}$ and semaphores to represent the precedence constraints of the statements $S_1$ to $S_6$, as shown in figure belo...