Glossary: System Design Basics in C++
deadlock
A hang where two threads each hold one mutex and wait for the other. Locking in the same order everywhere, or using `std::scoped_lock`, avoids it.
Glossary: System Design Basics in C++
A hang where two threads each hold one mutex and wait for the other. Locking in the same order everywhere, or using `std::scoped_lock`, avoids it.