Assignment 3
Assignment 3
Q.1. Consider the following processes with the burst time (CPU Execution time). Calculate the
average waiting time and average turnaround time by using FCFS scheduling algorithm.
Process id Arrival time Burst time
P1 0 5
P2 1 6
P3 2 7
P4 3 8
P5 4 9
Q.2. Consider the set of 5 processes whose arrival time and burst time are given below. If the
CPU scheduling policy is SJF non-preemptive, calculate the average waiting time and average
turnaround time.
Process id Arrival time Burst time
P1 4 7
P2 0 5
P3 3 4
P4 1 2
P5 2 8
Q.3. Consider the set of 5 processes whose arrival time and burst time are given below. If the
CPU scheduling policy is Round Robin with time quantum = 3 unit, calculate the average
waiting time and average turnaround time.
Process id Arrival time Burst time
P1 1 12
P2 2 5
P3 3 6
P4 4 1
P5 5 3