mirror of
https://github.com/bootdotdev/fcc-learn-golang-assets.git
synced 2025-12-15 17:51:18 +00:00
Why is it called a "mutex"?
Mutex is short for mutual exclusion, and the conventional name for the data structure that provides it is "mutex", often abbreviated to "mux".
It's called "mutual exclusion" because a mutex excludes different threads (or goroutines) from accessing the same data at the same time.