Professional Documents
Culture Documents
a.Write Banker’s Safety Algorithm. Consider a system with five processes P0 through P4 and three
resources of type A, B, C. Resource type A has 10 instances, B has 5 instances and type C has 7 instances.
Suppose at time t0 following snapshot of the system has been taken:
Check whether the system is in in safe state or not.Find out the safe sequence.
b.i) Consider the set of 5 processes whose arrival time and burst time are given below-
P1 0 5
P2 1 3
P3 2 1
P4 3 2
P5 4 3
If the CPU scheduling policy is Round Robin with time quantum = 2 unit, calculate the average
waiting time and average turn around time.
II)
Find out the average waiting time in case of non-preemptive priority scheduling.