Duck Icon

Lander's blog

Lock (Mutex)

Previous: Concurrency

A lock or mutex (short for mutual exclusion) is a synchronization primitive that prevents data races by only allowing a single thread inside a critical section at a time.

#Publish

Links to this note