Hold and Wait (1/2)
This condition says, “Some process holds one resource while waiting for another.”
To attack the hold and wait condition:
- Force a process to acquire all the resources it needs before it does anything; if it can’t get them all, get none
Each philosopher tries to get both chopsticks, but if only one is available, put it down and try again later