发明名称 Scalable thread locking with customizable spinning
摘要 Embodiments described herein are directed to dynamically controlling the number of spins for a selected processing thread among a plurality of processing threads. A computer system tracks both the number of waiting processing threads and each thread's turn, wherein a selected thread's turn comprises the total number of waiting processing threads after the selected thread's arrival at the processor. Next, the computer system determines, based the selected thread's turn, the number of spins that are to occur before the selected thread checks for an available thread lock. The computer system also, based on the selected thread's turn, changes the number of spins, such that the number of spins for the selected thread is a function of the number of waiting processing threads and processors in the computer system.
申请公布号 US8683470(B2) 申请公布日期 2014.03.25
申请号 US20090625344 申请日期 2009.11.24
申请人 OMARA EMAD A.;DUFFY JOHN J.;MICROSOFT CORPORATION 发明人 OMARA EMAD A.;DUFFY JOHN J.
分类号 G06F9/46 主分类号 G06F9/46
代理机构 代理人
主权项
地址