Wednesday, 21 April 2021

Bankers Algorithm in OS

 Considering 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:




Question1. What will be the content of the Need matrix?


Question2.  Is the system in a safe state? If Yes, then what is the safe sequence?


Question3. What will happen if process Prequests one additional instance of resource type A and two instances of resource type C?




No comments:

Post a Comment