Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Concept

Mutex

Technique

A mutual-exclusion lock that allows only one thread at a time to enter a protected section of code, used to prevent two threads from concurrently reading and writing shared data in a way that corrupts it.

Facts
Origin Year
1965 1
Core Principle
A mutex is a synchronization primitive that allows only one thread of execution at a time to hold it, preventing shared state from being modified or accessed concurrently by more than one thread. 2
Connections

In Field

Sources
1. Wikipedia: Mutual Exclusion
Wikimedia FoundationArticle text, Dijkstra 1965 attribution
Quote, Article text, Dijkstra 1965 attribution
The requirement of mutual exclusion was first identified and solved by Edsger W. Dijkstra in his seminal 1965 paper
View the Source
2. Wikipedia: Lock (Computer Science)
Wikimedia FoundationLead paragraph, mutex definition
Quote, Lead paragraph, mutex definition
a lock or mutex (from mutual exclusion) is a synchronization primitive that prevents state from being modified or accessed by multiple threads of execution at once.
View the Source
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.