Livelock
Updated 2026-07-28
Summary
Deadlock, also translated as dead knot, is a computer science term. When two or more computing units are each waiting for the other to stop executing in order to acquire system resources, but no one exits early, it is called deadlock. In multitasking operating systems, to coordinate different threads and whether they can acquire system resources, the operating system must solve this problem for the system to function properly. Another similar situation is called 'livelock'.
Definition
Deadlock, also translated as dead knot, is a computer science term. When two or more computing units are each waiting for the other to stop executing in order to acquire system resources, but no one exits early, it is called deadlock. In multitasking operating systems, to coordinate different threads and whether they can acquire system resources, the operating system must solve this problem for the system to function properly. Another similar situation is called 'livelock'.
Introduction
How to use
Deadlock, also translated as dead knot, is a computer science term. When two or more computing units are each waiting for the other to stop executing in order to acquire system resources, but no one exits early, it is called deadlock. In multitasking operating systems, to coordinate different threads and whether they can acquire system resources, the operating system must solve this problem for the system to function properly. Another similar situation is called 'livelock'.
Mechanism
Two or more processes/threads continuously change state to 'yield' to each other to avoid conflict, resulting in none being able to proceed; unlike deadlock, resources are busy rather than frozen, and the system spins idly.
Practice
In progress 0/3Practice this model in one real situation:
Cases
- Two switches forward the same packet to each other forming a loop jitter; two threads each yield causing the task to never complete.
Common pitfalls
- Confusing with deadlock (deadlock is blocking, livelock is busy-waiting); only adding locks without breaking symmetry still results in livelock; ignoring randomness as a solution.
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- zh.wikipedia.orghttps://zh.wikipedia.org/wiki/%E6%AD%BB%E9%94%81verified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS