Mutex
Everything on SkillVeris tagged Mutex — collected across the glossary, study notes, blog, and cheat sheets.
11 resources across 2 libraries
Study Notes(2)
Concurrency in Rust (Threads, Channels, Mutex)
Learn how Rust's ownership rules enable fearless concurrency using threads, channels, and mutexes with compile-time data race prevention.
Mutex and Semaphores
Compare mutexes and binary/counting semaphores as tools for enforcing mutual exclusion and coordinating threads.
Interview Questions(9)
What is a Semaphore?
A semaphore is a synchronization primitive — an integer counter with atomic wait (P/down) and signal (V/up) operations — used to control access to shared resou…
Difference Between Mutex and Semaphore
A mutex is a locking primitive owned by exactly the thread that acquires it and enforces mutual exclusion over a single resource, while a semaphore is a counte…
What is a Race Condition?
A race condition occurs when two or more threads or processes access shared data concurrently and the final outcome depends on the unpredictable timing of thei…
What is the Critical Section Problem?
The critical section problem is the challenge of designing a protocol that lets multiple concurrent processes or threads take turns using a shared resource saf…
What is the Producer-Consumer Problem?
The producer-consumer problem is a classic synchronization challenge where one or more producer threads generate data into a shared, fixed-size buffer while on…
What is the Sleeping Barber Problem?
The sleeping barber problem is a classic synchronization exercise where a barber sleeps when there are no customers and must be woken when one arrives, while a…
What is a Condition Variable?
A condition variable is a synchronization primitive that lets a thread block until another thread signals that some shared condition has become true, always us…
Overview of Synchronization Primitives: Mutex, Semaphore, Condition Variable, Spinlock
Synchronization primitives are the building blocks — mutexes, semaphores, condition variables, and spinlocks — that operating systems and languages provide to…
How is a Mutex Implemented Internally?
A mutex is implemented as a small in-memory state word — typically a lock bit plus a waiter count or queue — manipulated through an atomic hardware instruction…