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

Discussion

Two tasks each hold one lock and wait for the other's. This is

  • A.a livelock
  • B.starvation of the lower priority task
  • C.a race condition on the two locks
  • D.a deadlock

Answer: D

Neither will release, neither can proceed, and nothing in the system will change: the classic deadly embrace. Livelock differs in that the tasks keep running and keep failing, and starvation in that progress is possible but never granted.

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

Post your comment

Please log in or register to post a comment.