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 safeDeadlock prevention schemes ensure safety by negating necessary conditions (like hold-and-wait) statically, rather than checking system state dynamically.…

  1. A.

    In deadlock prevention, the request for resources is always granted if the resulting state is safe

  2. B.

    In deadlock avoidance, the request for resources is always granted if the result state is safe

  3. C.

    Deadlock avoidance is less restrictive than deadlock prevention

  4. 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.

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…