A simulation project dealing with threads and mutexes for School42
- Clone the repository
- Use the terminal command
make
to compile everything
Philo is taking 4 or 5 arguments:
./philo {philosophers_count} {time_to_die} {time_to_eat} {time_to_sleep} [eat_min_count]
Once compiled, you can try the program by using this command:
./philo 4 800 200 200 3