Skip to content

Glossary: C++ Beyond the Basics

Deadlock

Threads each holding one mutex and waiting forever for another that a different thread holds. Locking in one order, or using `std::scoped_lock`, avoids it.

Where the book teaches it

Related terms

Mutexstd::scoped_lock