Invention Grant
- Patent Title: Adaptive lock list searching of waiting threads
- Patent Title (中): 等待线程的自适应锁列表搜索
-
Application No.: US14076223Application Date: 2013-11-10
-
Publication No.: US08954974B1Publication Date: 2015-02-10
- Inventor: Mathew Accapadi , Grover C. Davidson, II , Dirk Michel , Bret R. Olszewski
- Applicant: International Business Machines Corporation
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agent James L. Baudino
- Main IPC: G06F9/46
- IPC: G06F9/46 ; G06F9/52

Abstract:
A system and technique for adaptive lock list searching of waiting threads includes logic executable by a processor to: determine an average service time for a lock associated with a shared computing resource; determine an average search time for selecting a thread to next receive the lock from a plurality of threads waiting for the lock; sum the average service time and the average search time; apply a search factor to the summed average service time and average search time to obtain a target search time for searching the waiting threads for selecting the next thread for obtaining the lock; determine a quantity of waiting threads to consider for next obtaining the lock based on the target search time and the average search time, the quantity being less than a total quantity of waiting threads; and identify the next thread to obtain the lock from the quantity.
Information query