A naive solution (all philosophers pick left fork first) causes deadlock. The updated exam expects one of two solutions:
Your philo executable must:
time_to_die of their last meal start.Do not lose points to the Norminette. The updated grading often checks for: 42 exam rank 03 updated
The new examshell runs your code with:
Ensure:
The new exam introduces a twist: Three processes communicating. You must write a program that spawns two child processes, allows them to communicate via a pipe, and then reports the result back to the parent without leaking file descriptors. A naive solution (all philosophers pick left fork