In Section 5.8, we present a solution to the dining-philosophers problem that ensures freedom from deadlocks. Note, however,
that any satisfactory solution to the dining-philosophers problem must guard against the possibility that one of the philosophers will starve to death.
A deadlock-free solution does not necessarily eliminate the possibility of starvation.