The goal of this project is to create a simulation, in which you try to keep "philosophers" alive. They have a strict pattern that they follow -> eat, sleep, think, eat, ... <-. In the simulation the philosophers are sitting at a round table and are sharing forks. This means that two philosophers next to each other can never eat at the same time (in the code this is done through the use of mutex locks).
MacOs Linux only
git clone https://github.com/nschumac/42cursus03-Philosophers.git
- run
make
in cloned repository - execute philo e.g
./philo 4 420 200 200
syntax: ./philo [amount of philosophers] [death time] [eat time] [sleep time] "[amount to eat]"
- Status: Completed
- Result: 100%
- 42-slack: nschumac
- 42-email: [email protected]
- 42-profile: https://profile.intra.42.fr/users/nschumac