๐ Philosophers is a 42 school project.
The instructions were given in the subject.
number_of_philosophers
: Ihe number of philosophers and also the number of forks.time_to_die
: If a philosopher didnโt start eating time_to_die milliseconds since the beginning of their last meal or the beginning of the simulation, they die.time_to_eat
: The time it takes for a philosopher to eat. During that time, they will need to hold two forks.time_to_sleep
: The time a philosopher will spend sleeping.number_of_times_each_philosopher_must_eat
: If all philosophers have eaten at least number_of_times_each_philosopher_must_eat times, the simulation stops. If not specified, the simulation stops when a philosopher dies (optional argument.