Daily Term: Deadlock
Deadlock
A Deadlock occurs in a multi-threaded system when two or more threads are unable to proceed because each is waiting for a resource held by another, creating a circular dependency. For example, Thread A holds Resource 1 and waits for Resource 2, while Thread B holds Resource 2 and waits for Resource 1. Deadlocks can halt system progress and are resolved through techniques like resource ordering, timeouts, or deadlock detection, but prevention requires careful design.
Date: 2025-08-14