Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M5808

Livelock

Livelock
TechnicalHigh supportComputer Science
Included
account_tree

Updated 2026-07-28

Loading revision record…

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'.

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/3

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

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.

  • link
    zh.wikipedia.orghttps://zh.wikipedia.org/wiki/%E6%AD%BB%E9%94%81ZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS