“As with deadlock, livelocked threads are unable to make further progress. However, the threads are not blocked — they are simply too busy responding to each other to resume work. This is comparable to two people attempting to pass each other in a corridor: Alphonse moves to his left to let Gaston pass, while Gaston moves to his right to let Alphonse pass. Seeing that they are still blocking each other, Alphone moves to his right, while Gaston moves to his left. They’re still blocking each other, so…”
-
via Tumblr http://ift.tt/1kdUl2d
-
So that’s what LIVE-LOCK is! 兩個thread在巷子裡互相讓來讓去…我喜歡這種擬人化的描述!
via Tumblr http://ift.tt/1kdUl2d
沒有留言:
張貼留言