Deadlock Prevention, Avoidance, and Detection Flashcards

1
Q

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.

A

Mutual exclusion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A thread must be holding at least one (1) resource and waiting to acquire additional resources that are currently being held by other threads

A

Hold and wait

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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.

A

No preemption

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A closed chain of threads exists, such that each thread holds at least one resource neeeded by the next thread in the chain.

A

Circular wait

How well did you know this?
1
Not at all
2
3
4
5
Perfectly