A deadlock avoidance algorithm dynamically examines the _________ to ensure…
2024
A deadlock avoidance algorithm dynamically examines the _________ to ensure that a circular wait condition can never exist.
Answer: A. Resource allocation state — ConceptDeadlock avoidance permits a resource request only when the resulting system state remains safe. A safe-state test needs a complete snapshot of…
- A.
Resource allocation state
- B.
Resources
- C.
System storage state
- D.
More than one of the above
- E.
None of the above
Attempted by 16 students.
Show answer & explanation
Correct answer: A
Concept
Deadlock avoidance permits a resource request only when the resulting system state remains safe.
A safe-state test needs a complete snapshot of available resources, current allocations, and each process’s remaining maximum need; these values determine whether some safe completion sequence exists.
Application
Read the blank as the information examined dynamically before or during a resource-allocation decision.
The algorithm must know what is available, what each process already holds, and what each process may still request.
Together, those quantities form the resource allocation state, which the algorithm tests for safety before granting a request.
Cross-check and contrast
Resource allocation state: contains the complete availability, allocation, and remaining-need snapshot used by a safety test.
Resources: names the objects involved but omits how they are distributed and what processes may still need.
System storage state: concerns storage condition rather than the process-resource snapshot used for deadlock avoidance.
More than one of the above: would require at least two listed terms to denote the complete safety-test input.
None of the above: would require every listed term to fail to denote the complete safety-test input.
Result
Therefore, the blank is filled by “Resource allocation state”.