Make a loop in check_death less busy
authorLukas Jiriste <ljiriste@student.42prague.com>
Tue, 19 Mar 2024 13:41:48 +0000 (14:41 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 22 Mar 2024 10:01:34 +0000 (11:01 +0100)
commite20a76ffe4f6d9bf3a424248ee33cc2444bf0539
treef42527677f6b5103da39d1991c624070d2be29d6
parentf169b30887840569aa316b27727aba563b71f492
Make a loop in check_death less busy

This change makes the main thread sleep for the time it would
take the "most hungry" philosopher to die. It is thus guaranteed
that no philosopher may die during the sleep.
philo/main.c