Invention Grant
US08141089B2 Method and apparatus for reducing contention for computer system resources using soft locks 失效
使用软锁减少计算机系统资源争用的方法和装置

Method and apparatus for reducing contention for computer system resources using soft locks
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.
Information query
Patent Agency Ranking
0/0