reader writer lock + small cleanups

This commit is contained in:
Remzi H. Arpaci-Dusseau
2019-04-22 13:14:08 -05:00
parent d532b42eda
commit b4fa80ad67
5 changed files with 109 additions and 4 deletions

View File

@@ -43,6 +43,9 @@ prompt> ./producer_consumer 1 1000 1
The output should print each produced item once, and show which
consumer consumed each produced item.
# Reader/Writer Locks
Code in `rwlock.c`. Build via `make`, run via `rwlock`.
# Dining Philosophers
@@ -55,3 +58,8 @@ different forms:
Run `make` to build all of them with the highly primitive `Makefile`.
# Zemaphores
Code in `zemaphore.c`. We bet you can figure out the rest. This is just
a small test of the Zemaphore with the fork/join problem.