1.
When does the request switch from user mode to kernel mode? Give answer with an example. Find the average waiting time and turnaround time for the process scheduling algorithms FCFS, Priority and RR (Quantum=2) in the following given dataset.
$\begin{array}{|c|c|c|c|c|} \hline \text{Process} & \text{Arrival Time} & \text{Burst Time} & \text{Priority} \\ \hline P0 & 0 & 5 & 1 \text{ (Lowest)} \\ P1 & 1 & 3 & 4 \text{ (Highest)} \\ P2 & 2 & 8 & 2 \\ P3 & 3 & 6 & 3 \\ \hline \end{array}$
[10]