5.
Consider the following set of processes, with the length of CPU brust time given in milli seconds. The processed are assumed to have arrived in the order A, B, C and D all at time 0. What is the turnaround time and waiting time for the scheduling algorithms, RR (quantum = 3) and Priority Algorithm.
$\begin{array}{|c|c|c|}\hline \text{Process} & \text{CPU Burst} & \text{Priority} \\ \hline A & 8 & 3 \\ B & 9 & 1\,(\text{Lowest}) \\ C & 10 & 2 \\ D & 6 & 4\,(\text{Highest}) \\ \hline \end{array}$
[5]