/42_philosophers

Multi-thread c program representing the problem of the dining philosophers.

Primary LanguageC

42_philosophers

42 campus multi-thread managing program representing the problem of the dining philosophers

Subject of the exercise: en.subject.pdf

Languajes:

C C

Compile in mac:

make 

Compile in Linux:

make linux

Execute

./philo 4 200 100 100 4

Arguments:

number_of_philosophers time_to_die time_to_eat time_to_sleep [number_of_times_each_philosopher_must_eat]