Which of the following is NOT true of deadlock prevention and deadlock…
2008
Which of the following is NOT true of deadlock prevention and deadlock avoidance schemes?
Answer: A. In deadlock prevention, the request for resources is always granted if the resulting state is safe — Deadlock prevention schemes ensure safety by negating necessary conditions (like hold-and-wait) statically, rather than checking system state dynamically.…
- A.
In deadlock prevention, the request for resources is always granted if the resulting state is safe
- B.
In deadlock avoidance, the request for resources is always granted if the result state is safe
- C.
Deadlock avoidance is less restrictive than deadlock prevention
- D.
Deadlock avoidance requires knowledge of resource requirements a priori
Attempted by 27 students.
Show answer & explanation
Correct answer: A
Deadlock prevention schemes ensure safety by negating necessary conditions (like hold-and-wait) statically, rather than checking system state dynamically. Deadlock avoidance schemes, however, rely on a priori knowledge and perform safety checks before granting resources to ensure the system remains in a safe state. Therefore, stating that prevention uses safety checks is incorrect.
A video solution is available for this question — log in and enroll to watch it.