发明名称 |
Adaptive lock list searching of waiting threads |
摘要 |
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. |
申请公布号 |
US8954974(B1) |
申请公布日期 |
2015.02.10 |
申请号 |
US201314076223 |
申请日期 |
2013.11.10 |
申请人 |
International Business Machines Corporation |
发明人 |
Accapadi Mathew;Davidson, II Grover C.;Michel Dirk;Olszewski Bret R. |
分类号 |
G06F9/46;G06F9/52 |
主分类号 |
G06F9/46 |
代理机构 |
|
代理人 |
Baudino James L. |
主权项 |
1. A system, comprising:
a processor unit; and logic executable by the processor unit 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; andidentify the next thread to obtain the lock from the quantity. |
地址 |
Armonk NY US |