SU04: Process & Memory Management Flashcards

1
Q

Deadlock Conditions

A
  1. Mutual Exclusion: resource to one process only
  2. Hold and wait: Process can hold resource while waiting for other resources
  3. No pre-emption: resorces cannot be removed from process (halting not allowed)
  4. **Circular wait: **the cruicial condition
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Deadlock Prevention

A
  1. Mutual exclusion: Not possible - necessary for reource to have this chracteristic
  2. Hold & wait: Possible - Process need to have all required resources, Will be blocked until all resources are allocated
  3. No pre-emption: Possible - Process to release withheld resources if other process needs it
  4. Circular wait: Possible - Define Linear ordering of resource type
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Deadlock Avoidance

A

Process not started if demands lead to deadlock
Process not **granted incremental resource if allocation ** lead to deadlock

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

Deadlock Detection & Recovery

A

OS periodically checks for deadlock, to employ strategy to resolve deadlock (abort & restart deadlock process)

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