Lukas Jiriste [Tue, 19 Mar 2024 13:41:48 +0000 (14:41 +0100)]
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.
Lukas Jiriste [Thu, 7 Mar 2024 16:52:47 +0000 (17:52 +0100)]
Implement mandatory part of philosophers
Sorry for big commit, I wrote it in one session and didn't encounter
an apropriate point for partial commit.
This needs to be tested and refactored to pass the 42 Norm.