Back To Chapter 2

Classical Problems in Process Synchronization

Dinning Philosophers: Deadlock - circular wait list.    If every philosopher picks up right fork, no one can eat it.
Starvation - infinitely blocked.   If wait for others finishing, it may never have chances to eat.

The Dinning Philosophers problem may apply to the situation you must have disk drive and printer to do your jobs (That is, you need two resources).

Deadlock free:
   If no one beside you is eating and you are hungry, then eat it.

Starvation free
  Set up priority: