Skip to content

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.

Where the book teaches it

Related terms

mutex (std::mutex)