Mutex
Type of Lock.
Mutex (Mutual Exclusion): A mutex is a synchronization primitive used to protect shared resources from being accessed by multiple threads simultaneously. When a thread acquires a mutex, it gains exclusive access to the protected resource, and other threads are blocked from accessing it until the mutex is released. Mutexes are used to ensure that only one thread at a time can perform operations on critical sections of code or data.