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

A system has m resources: R0,R1.....Rm1 & n concurrent processes P0,P1...Pn1. The implementation of resource request logic of each process Pi, is as follows
{Request R[(t mod m)]
Request R[(t2) mod m]
}
If first resource is not available, process waits till it becomes available & then only request next.
Which of the following statement is TRUE?

Open in App
Solution

Deadlock is possible when m = 4 & n > 2
P0 : Requests R0 & R2
P1 : Requests R1 & R3
P2 :Requests R2 & R0
If R0 is granted to P0 & R2 is granted to P2, P0 waits for R2 & P2waits for R0

flag
Suggest Corrections
thumbs-up
0
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Active Participation of Citizens and Civil Liberties
CIVICS
Watch in App
Join BYJU'S Learning Program
CrossIcon