IT lexicon › Programming › Livelock

Livelock

Programming På svenska → Updated: 2026-05-24

Concurrency bug where threads keep working but never make progress — they all retry each other forever. Distinct from deadlock: nobody is blocked, everyone is active.

Classic example: two people meet in a corridor and both move the same way, then both move the other way, repeat. Common with distributed locks + retry loops lacking jitter. Solution: randomized backoff (Ethernet uses this — CSMA/CD), different priorities, or a different synchronization model entirely. Harder to detect than deadlock because CPU usage looks high.

← Back to the lexicon