SU04: Process & Memory Management Flashcards
1
Q
Deadlock Conditions
A
- Mutual Exclusion: resource to one process only
- Hold and wait: Process can hold resource while waiting for other resources
- No pre-emption: resorces cannot be removed from process (halting not allowed)
- **Circular wait: **the cruicial condition
2
Q
Deadlock Prevention
A
- Mutual exclusion: Not possible - necessary for reource to have this chracteristic
- Hold & wait: Possible - Process need to have all required resources, Will be blocked until all resources are allocated
- No pre-emption: Possible - Process to release withheld resources if other process needs it
- Circular wait: Possible - Define Linear ordering of resource type
3
Q
Deadlock Avoidance
A
Process not started if demands lead to deadlock
Process not **granted incremental resource if allocation ** lead to deadlock
4
Q
Deadlock Detection & Recovery
A
OS periodically checks for deadlock, to employ strategy to resolve deadlock (abort & restart deadlock process)