P1: CPU burst of 8 units, I/O burst of 7 units, CPU burst of 3 units.
P2: CPU burst of 6 units, an I/O burst of 3 units and a CPU burst of 2 units.
Suppose that Process 1 arrives in the ready queue just before Process 2 and just after Process 2 arrives the process that was in the CPU terminates. No other processes are in the system. For each of the scheduling algorithms below draw a Gantt charts showing the state of each of the two processes and calculate the waiting times and CPU utilization.