Eat, Sleep, Spaghetti, repeat. This project is about learning how threads work by precisely timing a group of philosophers on when to pick up forks and eat spaghetti without dying from hunger.
To compile the mandatory part (use of threads) run
$ make
For the bonus (use of forked processes) run
$ make bonus
Philo executable takes the following arguments
$ ./philo number_of_philosophers time_to_die time_to_eat time_to_sleep [number_of_times_each_philosopher_must_eat]
This project is part of the School 42 curriculum. It has to be written entirely in C and comply with several "norme" rules, including for the code writing.