Skip to content

Glossary: Rust Beyond the Basics

deadlock

A situation where threads each wait for a lock another holds, so the program hangs forever. Locking in one consistent order avoids it.

Where the book teaches it

Related terms

Mutexchannel