Deadlock Prevention, Avoidance, and Detection Flashcards
At least one resource must be held in a non-sharable mode. This means that only one (1) thread at a time can use the resource. If another thread requests that specific resource, the requesting thread must be delayed until the resource has been released.
Mutual exclusion
A thread must be holding at least one (1) resource and waiting to acquire additional resources that are currently being held by other threads
Hold and wait
Resources cannot be preempted. This means that a resource can only be released voluntarily by the thread holding it after that thread has completed its task.
No preemption
A closed chain of threads exists, such that each thread holds at least one resource neeeded by the next thread in the chain.
Circular wait