wiz-icon
MyQuestionIcon
MyQuestionIcon
3
You visited us 3 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following snapshot of a system running n processes. Process i is holding xi instances of a resource R, for 1 in. Courrently, 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?

Open in App
Solution

Total number of processes = n
Process i is holding xi instances of a resource R for 1in.
Process i holding resource xi and additional required yi. There are two processes p and q such that yp=yq=0
For no dead lock can occur
xp+xq(maxk p,qyk)

flag
Suggest Corrections
thumbs-up
0
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Deadlock Avoidance
OTHER
Watch in App
Join BYJU'S Learning Program
CrossIcon