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

Consider 3 concurrent processes X, Y & Z which request resources in the order given in options. There are total 5 resources R1 to R5. If process do not get resource, it waits till it becomes available. Once process completes, it release all resources it has. Which of the following guarantees deadlock free operation?

Open in App
Solution

Option (A)

If all processes start concurrently. X can wait for R5 which is taken by Z, Y wait for R2 which is taken by X & Z waits for R1
Its a deadlock.
Option (B) & (D) also may lead to deadlock.
In option (C), the resource request sequence is in ordered sequence
Its deadlock free.

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