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

Discussion

Deadlock requires that four conditions hold together. They are mutual exclusion, hold and wait, no preemption and

  • A.a shared clock between the tasks
  • B.an unbounded number of tasks in the system
  • C.circular wait
  • D.priority inversion among the tasks involved

Answer: C

Correct answer: circular wait

Coffman’s four conditions must hold together: mutual exclusion, hold and wait, no preemption, and a circular chain of tasks each waiting for a resource the next holds. Breaking any one prevents deadlock, and imposing a global lock ordering is the usual way of breaking the fourth.

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

Post your comment

Please log in or register to post a comment.