Invention Grant
- Patent Title: Method and apparatus for reducing contention for computer system resources using soft locks
- Patent Title (中): 使用软锁减少计算机系统资源争用的方法和装置
-
Application No.: US11622021Application Date: 2007-01-11
-
Publication No.: US08141089B2Publication Date: 2012-03-20
- Inventor: Michael J. Corrigan , Gary Ross Ricard , Timothy Joseph Torzewski
- Applicant: Michael J. Corrigan , Gary Ross Ricard , Timothy Joseph Torzewski
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agent Roy W. Truelson
- Main IPC: G06F9/46
- IPC: G06F9/46

Abstract:
A soft lock mechanism controls access by multiple processes to a shared resource to make simultaneous access an unlikely event, while not necessarily preventing simultaneous access. Preferably, the soft lock contains a next_free_time field, specifying when the soft lock will next be available, and a lock_duration, specifying a sufficiently long interval for most accesses to the resource to complete. The lock is obtained by comparing the current time to next_free_time. If the current time is later than next_free_time, then the lock is obtained immediately, and next_free_time is updated to the current time plus lock_duration. If the current time is before next_free_time, then next_free_time is incremented by lock_duration, and the requesting process waits until the old next_free_time to obtain the lock. No action is required to release the lock.
Public/Granted literature
- US20080172670A1 Method and Apparatus for Reducing Contention for Computer System Resources Using Soft Locks Public/Granted day:2008-07-17
Information query