Mid3
Peterson solution¶
Deadlock¶
4 necessary conditions
- Mutual exclusion :
only 1 process at a time can use a resource
- Hold & wait :
a process holding some resources and is waiting for another resource.
- No preemption :
a resource can be only released a process voluntarily.
- Circular wait