Patent ID: 9747210
Date: 2017-08-29
CPC Classifications: G06F

Claim:
1. A computer program product for managing a lock for a shared resource accessed by a plurality of processors in communication with a memory, wherein the computer program product comprising a non-transitory computer readable storage medium having computer readable program code embodied therein that executes to cause operations, the operations comprising: initializing slots in the memory to implement the lock on the shared resource by setting one of the slots to free and all other of the slots to busy; selecting one of the slots following a previously accessed slot of the slots when a requesting processor requests the lock to the shared resource; determining whether the selected slot indicates free; indicating a processor identifier of the requesting processor in the selected slot in response to determining that the selected slot indicates not free; and accessing, by the requesting processor, the shared resource in response to determining that the selected slot indicates free.