This assignment tries to solve two variations of the dining philosophers by using strict ordering and semaphores on each variation.
- Five Philosophers, Five Forks
- Five Philosophers, Five Forks, Two Bowls
Clone this repo, cd
into it, and run:
make
This will generate the binaries for all variations.
You can run the first variation, strictly ordered, by running:
bin/forksA
You can run the second variation, strictly ordered, by running:
bin/soupA
You can run the first variation, semaphores, by running:
bin/forksB
You can run the second variation, semaphores, by running:
bin/soupB