simple dining philosophers code (Linux only)

This commit is contained in:
Remzi H. Arpaci-Dusseau
2019-04-16 16:17:36 -05:00
parent fed11531f7
commit 2621d03f99
6 changed files with 385 additions and 0 deletions

12
threads-sema/README.md Normal file
View File

@@ -0,0 +1,12 @@
# Dining Philosophers
The dining philosophers example from the text is found herein, in a few
different forms:
- `dining_philosophers.c`: code with deadlock
- `dining_philosophers_print.c`: code with deadlock, and some useful printing
- `dining_philosophers_no_deadlock.c`: code without deadlock
- `dining_philosophers_no_deadlock_print.c`: code without deadlock, and some useful printing
Run `make` to build all of them with the highly primitive `Makefile`.