1.
Why do we need to schedule process? Find the average waiting time and average turnaround time for the following set of processes using FCFS, SJF, RR (Quantum = 3) and shortest remaining time next.
$\begin{array}{|c|c|c|} \hline \text{Process} & \text{CPU burst time} & \text{Arrival time} \\ \hline P1 & 20 & 0 \\ P2 & 25 & 15 \\ P3 & 10 & 30 \\ P4 & 15 & 45 \\ \hline \end{array}$
[10]