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?
- AIn deadlock prevention, the request for resources is always granted if resulting state is safe.Correct answer
- BIn deadlock avoidance, the request for resources is always granted. if the resulting state is safe.
- CDeadlock avoidance requires knowledge of resource requirements a priori.
- DDeadlock 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.