0
0
Operating Systemsknowledge~5 mins

Deadlock detection and recovery in Operating Systems - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a deadlock in operating systems?
A deadlock is a situation where a group of processes are each waiting for resources held by the others, so none can proceed.
Click to reveal answer
beginner
What is the main goal of deadlock detection?
The main goal of deadlock detection is to find if a deadlock has occurred in the system by checking resource allocation and process states.
Click to reveal answer
intermediate
Name one common method used for deadlock detection.
One common method is the resource allocation graph, which shows processes and resources and helps identify cycles indicating deadlocks.
Click to reveal answer
intermediate
What are two common strategies for deadlock recovery?
Two common strategies are: 1) Terminating one or more processes involved in the deadlock, 2) Preempting resources from some processes to break the deadlock.
Click to reveal answer
intermediate
Why is deadlock prevention often not used in practice?
Deadlock prevention can be too restrictive and reduce system efficiency because it limits how resources are allocated.
Click to reveal answer
What does a cycle in a resource allocation graph indicate?
AA deadlock
BA free resource
CA completed process
DAn idle CPU
Which of the following is NOT a deadlock recovery method?
ARolling back processes
BPreempting resources
CTerminating processes
DIgnoring the deadlock
Deadlock detection algorithms typically run:
AOnly at system startup
BPeriodically during system operation
COnly when a process finishes
DNever
Which resource state is most likely to cause deadlock?
AResources held and requested simultaneously by processes
BResources always free
CResources never requested
DResources allocated to only one process
What is a disadvantage of terminating processes to recover from deadlock?
AIt prevents deadlocks from happening
BIt speeds up the system
CIt may cause loss of work done by the terminated processes
DIt frees all resources immediately
Explain how deadlock detection works and what happens after a deadlock is detected.
Think about how the system finds deadlocks and what it does next.
You got /4 concepts.
    Describe two methods used to recover from deadlocks and their possible drawbacks.
    Consider what happens when you stop or take resources from processes.
    You got /4 concepts.