-
Consider the following snapshot of a system running n processes. Process/is holding Xi instances of a resource R, I ≤ i ≤ n. Currently, all instances of R are occupied. Further, for all i process i has placed a request for an additional yi instances while holding the xi instances it already has. There are exactly two processes p and q such that yp = yq = 0. Which one of the following can serve as a necessary condition to guarantee that the system is not approaching a deadlock?
-
- min (xp, xq) < maxkp,p yk)
- xp + xq ≥ maxk ≠ p,q yk
- max (xp, xq) > 1
- min (xp, xq) > 1
- min (xp, xq) < maxkp,p yk)
Correct Option: B
Here option (b) is that min (xp ,xq) < maxk? p,q yk Means the min no. of resources allocated should be less than the maximum number of resources required by any process other than p & q. So, It prevent from deadlock.
Hence (b) is correct option.