Skip to content

ISRO Scientist/Engineer CSE 2017Operating Systems › Deadlocks

ISRO Scientist/Engineer CSE 2017 PYQ: Which of the following is not true with respect to deadlock prevention and deadlock avoidance schemes?

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.
    Correct answer
  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.

Answer

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

Approach

Evaluate each statement against the standard definitions of deadlock prevention and deadlock avoidance. Deadlock prevention breaks one of the four necessary conditions structurally, so it may deny a request even when the resulting state is safe. Deadlock avoidance uses a priori maximum needs and grants a request only if the resulting state remains safe.

Reviewed by ISRO IQ Editorial Team.