Concurrency - Mutex (Mutual exclusion object)

Data System Architecture


A mutex is a mutual exclusion object that restricts access to a shared resource (e.g. a file) to a single thread instance.

The mutual exclusion synchronization between concurrent thread means that:

  • only one thread has access to a shared resource
  • while the other threads are waiting


  • Before an operation, a thread will lock the mutex before accessing a non-threadsafe resource. This is guaranteed to block the thread until no other thread holds a lock on the mutex and thus enforces exclusive access to the resource.
  • Once the operation is complete, the thread releases the lock, allowing other threads to acquire a lock and access the resource.

It's a mutual exclusive lock.


Documentation / Reference

Discover More
Card Puncher Data Processing
Oracle Database - Internal Locks

Internal locks are higher-level, more complex mechanisms than latches and mutexes and serve various purposes. The database uses the following types of internal locks: These locks are of very short...
Card Puncher Data Processing
Oracle Database - System Lock

The system lock protect internal database structures such as data files. Oracle Database uses various types of system locks to protect internal database and memory structures. These mechanisms are inaccessible...

Share this page:
Follow us:
Task Runner