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>
Tue, 19 Mar 2024 13:41:48 +0000 (14:41 +0100)
commit9d8665eaa18f9d8b77faa09b4b9a2e21f583a640
treef253d2ff317d719a5d886d255bebc8a478e40ca0
parentb3e9e47edf2caced9053d2bf44183d0f73096b3f
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