CPC G06F 9/52 (2013.01) [G06F 2209/521 (2013.01)] | 20 Claims |
1. A method of transferring control of a lock, comprising:
performing by a first controlling thread:
adding, by a first thread, a wait structure to a primary queue to wait for allocation of a lock, the wait structure comprising a wait field initialized to a zero value; and
writing, by a second thread, a non-zero value to the wait field of the wait structure to transfer control of the lock to the first thread, the non-zero value comprising an address of a secondary queue comprising one or more other threads waiting for the lock.
|