Method, apparatus and article of manufacture for timeout waits on locks
AssigneeInternational Business Machines Corporation
InventorALAN F. BABICH
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorALAN F. BABICH
Estimating the term…
Embodiments of the invention provide techniques for performing timeout waits of process threads. Generally, a thread requesting access to locked resource sends a timeout request to a timeout handler process, and then goes to sleep. The timeout request is received by a receiving thread of the timeout handler process. The receiving thread may insert the timeout request into a minimum heap of timeout requests, and may determine whether the inserted request is due earlier than any of the existing timeout requests. If so, the receiving thread may interrupt a timing thread of the timeout handler process. The timing thread may then wait until reaching the requested timeout, and then send a wakeup message to the sleeping thread.
A computer-implemented method for performing a timeout wait for a thread requesting access to a shared resource locked by a process lock, comprising:
A computer-readable storage medium containing a program, which when executed on a processor performs an operation, comprising:
A system, comprising:
Dependencies are inferred from the claim text.