Eat, Sleep, Think, 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. Got familiarized with concepts of threading and forking a proces, mutexes and semaphores
100%
make
./a.out
will take as parameters number_of_philosophers time_to_die time_to_eat time_to_sleep number_of_times_each_philosopher_must_eat
[number_of_times_each_philosopher_must_eat] is optional