/philosophers

Dining philosophers problem

Primary LanguageC

Philosophers

Dining philosophers problem

The goal of the project is to learn how to use synchronization primitive in processes and threads

Simulation

make

./philo 4 410 200 100 10

4 number of philosophers

410 time to die

200 time to eat

100 time to sleep

10 number of times each philosopher must eat

Mandatory

Synchronization primitives use only Mutex in threads

Bonus

Synchronization primitives use only Semaphore in processes and threads

Screen.Recording.2022-06-08.at.3.31.21.AM.mov