in Operating System reopened by
1,874 views
2 votes
2 votes

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

  1. In deadlock prevention, the request for resources is always granted if resulting state is safe.
  2. In deadlock avoidance, the request for resources is always granted. if the resulting state is safe.
  3. Deadlock avoidance requires knowledge of resource requirements a priori.
  4. Deadlock prevention is more restrictive than deadlock avoidance.
in Operating System reopened by
by
1.9k views

3 Comments

option a
0
0
option A is false because it is a condition for deadlock avoidance not prevention
0
0
0
0

2 Answers

4 votes
4 votes
Best answer

Deadlock prevention tries to break one of the four necessary conditions of deadlock. It may reject resource requests even if the resulting state is safe in order to break necessary condition.

Eg: ordering of resources may reject some requests even though they are safe

  • Prevention is similar to a traffic light while avoidance is similar to a police officer directing traffic
  • Deadlock avoidance is less strict than deadlock prevention. It allows mutual exclusion, wait and hold, no preemption, but prevents circular wait. Deadlock avoidance only checks safe states. The request for resources is always granted if the resulting state is safe

Option A is false, all other options are true

selected by
by
0 votes
0 votes

option A

Deadlock prevention scheme handles deadlock by making sure that one of the four necessary conditions don't occur. In deadlock prevention, the request for a resource may not be granted even if the resulting state is safe.

http://www.geeksforgeeks.org/operating-systems-set-11/

Answer:

Related questions