Homework #2, Deadlock
Silbershatz problem 7.1
For this
code example
, first identify how it satisfies the four conditions of deadlock. Then, propose a solution that breaks one of those conditions.