Invention Grant
- Patent Title: Method, apparatus and article of manufacture for timeout waits on locks
- Patent Title (中): 用于超时的方法,装置和制品等待锁
-
Application No.: US12111157Application Date: 2008-04-28
-
Publication No.: US08131983B2Publication Date: 2012-03-06
- Inventor: Alan F. Babich
- Applicant: Alan F. Babich
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Patterson & Sheridan, LLP
- Main IPC: G06F9/46
- IPC: G06F9/46 ; G06F9/48

Abstract:
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.
Public/Granted literature
- US20090271789A1 METHOD, APPARATUS AND ARTICLE OF MANUFACTURE FOR TIMEOUT WAITS ON LOCKS Public/Granted day:2009-10-29
Information query