MyPhilosophersDinnerProject

Is a philosophers dinner simulation made in C
It can be compiled using make
You should run with the parameters:

./philo <number_of_philosophers> <time_to_die> <time_to_eat> <time_to_sleep>

ex.:
> ./philo 4 200 200 200
0ms 2 has taken a fork
0ms 2 has taken a fork
0ms 2 is eating
1ms 4 has taken a fork
1ms 4 has taken a fork
1ms 4 is eating
201ms 3 has taken a fork
201ms 1 has taken a fork
201ms 1 has taken a fork
201ms 1 is eating
201ms 3 has taken a fork
201ms 3 is eating
201ms 2 is sleeping
201ms 2 died