Which of the following best describes the purpose of deadlock detection in operating systems?
Think about what happens after a deadlock has already happened.
Deadlock detection is about finding deadlocks that have already occurred so the system can recover. Prevention and avoidance are different strategies.
Which of the following is NOT a common method used for deadlock recovery?
Consider which option is not a direct recovery technique.
Increasing resources is a system change, not a recovery method. Recovery involves process termination, resource preemption, or rollback.
Given a resource allocation graph with cycles, which statement is true about deadlock detection?
Think about how resource instances affect deadlock detection.
Cycles in resource allocation graphs indicate deadlocks if resources have a single instance. Multiple instances require more complex checks.
Which of the following statements correctly compares the wait-for graph and the resource allocation graph methods for deadlock detection?
Consider the complexity and usage scenarios of each graph type.
Wait-for graphs are simpler and used when each resource has multiple instances. Resource allocation graphs use simple cycle detection when each resource has one instance.
An operating system detects a deadlock involving multiple processes and resources. Which recovery strategy minimizes system disruption while ensuring deadlock resolution?
Think about balancing system stability and deadlock resolution.
Preempting resources from low priority processes reduces disruption compared to terminating all or rolling back all processes. Ignoring deadlock causes system hang.