516 views

1 Answer

1 votes
1 votes
1) FCFS:

$\small \begin{array} {|c|c|c|c|c|c|} \hline \textbf{Process No.} & \textbf{Arrival Time} &\textbf{Burst Time} & \textbf{Completion Time} & \textbf{Turn Around Time} & \textbf{Watting Time}\\\hline A & 0 & 3 & 3 & 3 & 0 \\ B & 3 & 4 & 7 & 4 & 0  \\ C &  7 & 3 & 10 & 3 & 0 \\ D & 9 &  5 & 15 & 6 & 1  \\ E &12 & 7 & 22 & 10 & 3 \\\hline \end{array}$

Average watting time :$\frac{0+0+0+1+3}{5}=0.8$ msec.

2) RR:

$\small \begin{array} {|c|c|c|c|c|c|} \hline \textbf{Process No.} & \textbf{Arrival Time} &\textbf{Burst Time} & \textbf{Completion Time} & \textbf{Turn Around Time} & \textbf{Watting Time}\\\hline A & 0 & 3 & 3 & 3 & 0 \\ B & 3 & 4 & 7 & 4 & 0  \\ C &  7 & 3 & 10 & 3 & 0 \\ D & 9 &  5 & 18 & 9 & 4  \\ E &12 & 7 & 22 & 10 & 3 \\\hline \end{array}$

Average watting time :$\frac{0+0+0+4+3}{5}=1.4$ msec.

3) SRTF:

$\small \begin{array} {|c|c|c|c|c|c|} \hline \textbf{Process No.} & \textbf{Arrival Time} &\textbf{Burst Time} & \textbf{Completion Time} & \textbf{Turn Around Time} & \textbf{Watting Time}\\\hline A & 0 & 3 & 3 & 3 & 0 \\ B & 3 & 4 & 7 & 4 & 0  \\ C &  7 & 3 & 10 & 3 & 0 \\ D & 9 &  5 & 18 & 6 & 1  \\ E &12 & 7 & 22 & 10 & 3 \\\hline \end{array}$

Average watting time :$\frac{0+0+0+4+3}{5}=0.8$ msec.
edited by

Related questions

0 votes
0 votes
1 answer
2