Correct Answer: D. Prevention structurally denies a necessary condition, while avoidance grants requests only when the resulting state remains safe
Explanation:
Deadlock prevention designs the resource rules so at least one necessary condition cannot hold.
Deadlock avoidance evaluates each request using future maximum needs and safe-state analysis.
Correct Answer: C. Ignore the problem because prevention or detection cost is judged greater than the expected impact
Explanation:
The ostrich approach assumes deadlocks are sufficiently rare or recoverable through manual intervention.
General-purpose systems may choose this trade-off for some resource classes.
Correct Answer: B. There is at least one order in which all processes can finish with the available and released resources
Explanation:
A safe state has a safe sequence that permits each process to obtain its remaining needs and complete.
An unsafe state is not necessarily deadlocked, but it can lead to deadlock.
With one instance per resource type, a graph cycle means each process in the cycle waits on the next.
No process in that cycle can obtain the needed resource and proceed.
Correct Answer: C. The process is requesting an instance of that resource
Explanation:
A process-to-resource edge is a request edge showing an outstanding demand.
An assignment edge points in the opposite direction, from a resource instance to a process.
No preemption means resources are released only voluntarily by the process holding them.
A process may therefore remain blocked while retaining resources needed elsewhere.
Hold and wait allows a process to retain allocated resources while waiting for others.
This retained ownership can participate in a cycle of dependencies.
Correct Answer: B. Mutual-exclusion deadlock condition
Explanation:
Mutual exclusion applies when a resource cannot be shared concurrently among requesting processes.
If every resource were freely shareable, resource deadlock would not arise.
Correct Answer: A. A state in which a set of processes wait indefinitely for events that only processes in the same set can cause
Explanation:
Deadlocked processes cannot progress because each depends on resources or events held by another in the set.
External scheduling alone cannot resolve the circular dependency.