Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which of the following is NOT a necessary condition for deadlock ?

  • A.Mutual exclusion
  • B.Hold and wait
  • C.Preemption
  • D.Circular wait

Answer: C

The item that is not a deadlock condition is preemption.

Coffman's four necessary conditions for deadlock are mutual exclusion, hold and wait, no preemption and circular wait. All four must hold at once. Allowing preemption, so that resources can be taken away from a process, breaks one of the conditions and is a way of preventing deadlock.

Mutual exclusion, hold and wait, and circular wait are all on the list, so each of them is a necessary condition.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.