Oracle Corporation
Compact and Scalable Mutual Exclusion
Last updated:
Abstract:
Compact and scalable mutual exclusion techniques are implemented for multiple executing threads. A thread may acquire a lock by swapping a pointer to the thread into a tail field of a lock data structure. If the swap operation returned a null value, then the lock is acquired. If the swap operation does not return a null value, then the thread may wait to obtain the lock from a predecessor thread. The thread may wait until a grant field in a data structure for the predecessor thread stores a pointer to the lock, signaling to the thread that the thread may acquire the lock.
Status:
Application
Type:
Utility
Filling date:
5 Feb 2021
Issue date:
11 Aug 2022