Dining Philosophers Problem

Compare Tanenbaum's deadlock-free solution against the classic naive algorithm that causes total deadlock.

F0
F1
F2
F3
F4
P0
Thinking
P1
Thinking
P2
Thinking
P3
Thinking
P4
Thinking
Thinking
Hungry
Eating
Deadlocked

Annotated Solution Code (Tanenbaum Fig 2-46)