deadlock
Two threads each waiting forever for something the other one holds.
A deadlock is a cycle of threads each blocked waiting for a resource held by the next, so none can proceed.
Loading interactive…
Examples
Thread 1 locks
aand waits forb, while thread 2 locksband waits fora. Neither ever moves again.