Patent ID: 11940931
Assignee: APPLE INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 17:
18. A computer-implemented method implemented via one or more processors, the method comprising:
instantiating a user mode synchronization primitive to control access to a resource;
acquiring the user mode synchronization primitive at a first thread, the first thread having a first user mode priority and a first kernel mode priority; and
in response to an attempt to acquire the synchronization primitive at a second thread while the synchronization primitive is held by the first thread, adding the second thread to a wait queue of a first turnstile object associated with the user mode synchronization primitive and signaling the second thread when the user mode synchronization primitive is available to be acquired, wherein the second thread has a second user mode priority and a second kernel mode priority and the first user mode priority is increased to match the second user mode priority when the second user mode priority exceeds the first user mode priority.