Coding Problem - C/Threading

null

...
Joined
Nov 12, 2014
Messages
29,630
Reputation
5,109
Daps
46,861
Reppin
UK, DE, GY, DMV
question.png


- Justify why deadlock eventually occurs.
- Draw the resource dependency graph for the system, and explain why it reveals that the system is subject to deadlocks. Highlight the cycling edges that represent the specific deadlock experienced in the program execution
- How could you restrict the behavior of this system to guarantee the absence of a deadlock?

SPOILER dem answers ..
 
Top