Which of the following is not true with respect to deadlock prevention and…

20172025

Which of the following is not true with respect to deadlock prevention and deadlock avoidance schemes?

  1. A.

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

  2. B.

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

  3. C.

    Deadlock avoidance requires knowledge of resource requirements a priori

  4. D.

    Deadlock prevention is more restrictive than deadlock avoidance

Attempted by 161 students.

Show answer & explanation

Correct answer: A

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

Concepts:

Deadlock prevention can be done by eliminating any of the below condition:

1. Mutual Exclusion

2. Hold and wait

3. No preemption

4. Circular Wait.

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

Deadlock avoidance can be done with Banker’s Algorithm.

Banker’s Algorithm

Banker’s Algorithm is resource allocation and deadlock avoidance algorithm which test all the request made by processes for resources, it checks for the safe state, if after granting request system remains in the safe state it allows the request and if there is no safe state it doesn’t allow the request made by the process. Deadlock avoidance requires knowledge of resource requirements a priori

Comparison

Deadlock prevention is more restrictive than deadlock avoidance.

Therefore statement 1 is false

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Isro