Test #3 Flashcards

1
Q

Deadlock

A

Condition where a set of 2 or more procs are blocked and waiting for something from another proc in that set to do

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

4 Conditions for a program to possibly have deadlock

A
  1. mutex
  2. hold and wait
  3. no preemption
  4. circular wait
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

4 Ways to deal with deadlock

A
  1. Ignore it
  2. detect and recover
  3. prevent
  4. avoid
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

To prevent deadlock, which condition should you prevent

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