wordfor

dead·lock free·dom

/ˈdɛd.lɑːk ˌfriː.dəm/ (DED-lok free-dum) noun

Distributed systems

  1. A guarantee that the system can never reach a state where processes wait on each other forever. Always acquiring locks in a fixed global order gives deadlock freedom.

Origin

Deadlock, a complete standstill, is 18th-century English. Applied to concurrent processes in the 1960s, when Edsger Dijkstra also called it the 'deadly embrace'.

In practice

Acquire locks in one global order, hold them briefly and never call out to unknown code while holding one.

Say to your AI

Prove this code is deadlock-free, or show me the interleaving that deadlocks. Assume any two requests can run concurrently.

In plain words

  • everything freezes waiting on each other
  • two things waiting on each other
  • stuck waiting for locks
  • the app hangs and never recovers

See also livelock liveness starvation

Find similar words