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.
Glossary: C++ Beyond the Basics
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.