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

Suppose n processes, P1,....Pn share m identical resource units, which can be reserved and released one at a time. The maximum resource requirement of process Pi is sp where si>0. Which one of the following is a sufficient condition for ensuring that deadlock does not occur?

Open in App
Solution

There are n processes P1,P2,....Pn.
Number of identical resources = m
The maximum resource requirements for process Pi is Sp, where Si>0.
If all processes are in safe state then system can allocate resources to each process Pi in some order and still avoid a deadlock. We can avoid the dead lock if each Pi can still request can be satisfied by the current available resources plus the resources held by process Pi such that j < i. The maximum resource requirement of n processes
is ni=1si and this amount must less than m + n.
ni=1si<(m+n)

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