This program is the solution to the dining-philosopher's problem using p_threads and it's functions.
- clone this repo using git clone
- cd into the project directory
- type make from command line
- to execute the program run ./solvePhilosophy [number of philosopher]
- [optional] to clean invoke make clean
please see the different branch 'singleMutex'
The program on master branch does not make use of pthread_cond_t variable. There is a separate program that uses condition variable on the branch called singleMutex. The version on singleMutex branch makes use of all the APIs and variable types stated on the text book but does not solve the bounded waiting problem. To run singleMutex branch the instructions are same.