Assignment I OS II Algorithms
Assignment I OS II Algorithms
Operating System-II
Process Management Algorithms
1. Consider the following set of processes, with the length of CPU burst time given in
milliseconds.
The process are assumed to have arrived in the order P1, P2,P3, P4, P5, P6 all at
time 0
(a) Draw Gantt charts illustrating the execution of these processes using
(i) FCFS, (ii) RR (quantum = 3), (iii) preemptive priority (iv) a non preemptive priority
(v) SJF (vi) SRTN scheduling .
(b) What is turn around and waiting time of each process for each scheduling
algorithm in part a?
(c ) Justify if time quantum is too large in RR scheduling then it degenerates to FCFS
policy.
5. Consider the following set of processes, with the length of CPU-burst time given
in milliseconds and priority of the processes (consider 1 as highest priority):
Process Arrival time Burst time Priority
P1 0 10 3
P2 1 17 1
P3 3 3 3
P4 4 7 4
P5 5 12 2