All books

Professional

Apps About Coach Log in Start reading

Computer Science · Glossary

What is Deadlock, livelock, Coffman conditions?

Also known as: deadlock · livelock · Coffman conditions

Definition 13.2 University Computer Science — Year 3 · Chapter 13 — Concurrency: Deadlock, Monitors and Lock-Free Structures

A set of threads is in deadlock when each of them waits for something that only another thread of the set can provide, so that none of them will ever move again. In a livelock the threads keep taking steps, but none of the steps makes progress. The Coffman conditions for a deadlock over resources are: mutual exclusion (a resource is held by one thread at a time), hold and wait (a thread holds resources while it waits for others), no preemption (a resource is released only by its holder), and circular wait (a cycle of threads, each waiting for a resource the next one holds).

Read in context →