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

Discussion

Which change would NOT reduce the risk of deadlock in a design?

  • A.imposing a global order in which locks must be taken
  • B.replacing shared locked data with message passing
  • C.reducing the number of locks a task may hold at once
  • D.giving each lock a longer timeout

Answer: D

Correct answer: giving each lock a longer timeout

A longer timeout makes a deadlock last longer before it is detected; it does nothing to prevent one. The other three each break a Coffman condition: lock ordering breaks circular wait, message passing removes the shared resource, and holding fewer locks reduces hold and wait.

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

Post your comment

Please log in or register to post a comment.