From a990b014df702b3ce5dc6f41da244a58bc94d59d Mon Sep 17 00:00:00 2001 From: Willem Haffmans Date: Mon, 23 Dec 2024 10:20:26 +0100 Subject: [PATCH] README: fix lists --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 569f757..4e6c278 100644 --- a/README.md +++ b/README.md @@ -26,15 +26,15 @@ You have to write a program for the mandatory part and another one for the bonus - Your(s) program(s) should take the following arguments: number_of_philosophers time_to_die time_to_eat time_to_sleep [number_of_times_each_philosopher_must_eat] -* number_of_philosophers: The number of philosophers and also the number + * number_of_philosophers: The number of philosophers and also the number of forks. -* time_to_die (in milliseconds): If a philosopher didn’t start eating time_to_die + * time_to_die (in milliseconds): If a philosopher didn’t start eating time_to_die milliseconds since the beginning of their last meal or the beginning of the sim- ulation, they die. -* time_to_eat (in milliseconds): The time it takes for a philosopher to eat. + * time_to_eat (in milliseconds): The time it takes for a philosopher to eat. During that time, they will need to hold two forks. -* time_to_sleep (in milliseconds): The time a philosopher will spend sleeping. -* number_of_times_each_philosopher_must_eat (optional argument): If all + * time_to_sleep (in milliseconds): The time a philosopher will spend sleeping. + * number_of_times_each_philosopher_must_eat (optional argument): 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. @@ -46,11 +46,11 @@ pher number N + 1. Philosophers I never thought philosophy would be so deadly About the logs of your program: - Any state change of a philosopher must be formatted as follows: -* timestamp_in_ms X has taken a fork -* timestamp_in_ms X is eating -* timestamp_in_ms X is sleeping -* timestamp_in_ms X is thinking -* timestamp_in_ms X died + * timestamp_in_ms X has taken a fork + * timestamp_in_ms X is eating + * timestamp_in_ms X is sleeping + * timestamp_in_ms X is thinking + * timestamp_in_ms X died Replace timestamp_in_ms with the current timestamp in milliseconds and X with the philosopher number. - A displayed state message should not be mixed up with another message.