deadlock simple example

This commit is contained in:
Remzi Arpaci-Dusseau
2019-05-19 12:27:13 -05:00
parent 89354869b0
commit 9bff66d2ca
4 changed files with 68 additions and 1 deletions

View File

@@ -14,6 +14,11 @@ Type `make` to build all examples.
- `ordering.c`: Shows the ordering problem from the book chapter
- `ordering_fixed.c`: Shows how to fix the problem with a condition variable
## Deadlock
- `deadlock.c`: Shows simple two-cycle deadlock
- `deadlock_run.sh`: Script to run the above program many times, until you hit a deadlock and are convinced deadlock can occur