发明名称 Thread priority based on object creation rates
摘要 A method and apparatus for managing thread priority based on object creation rates. Embodiments of the invention provide a thread monitor configured to reduce the execution priority of a thread creating a sufficient number of new objects to be disruptive of system performance. Thus, although the thread may still create a large number of objects, by monitoring object creation rates and reducing the execution priority of such a thread, overall system performance may be improved. In other words, a given thread may still “misbehave,” but receive fewer opportunities to do so.
申请公布号 US8813082(B2) 申请公布日期 2014.08.19
申请号 US200611425846 申请日期 2006.06.22
申请人 International Business Machines Corporation 发明人 Barsness Eric L.;Santosuosso John M.;Stecher John J.
分类号 G06F9/46;G06F9/455;G06F12/00 主分类号 G06F9/46
代理机构 Patterson & Sheridan LLP 代理人 Patterson & Sheridan LLP
主权项 1. A computer-implemented method of managing thread priority based on object creation rates, comprising: dispatching a first thread from a pool of active threads ready for execution by a virtual machine in a garbage collected computing environment, wherein each thread in the pool of threads is assigned to collectively perform a common task; calculating an object creation rate for the first thread by: resetting a counter when the first thread is dispatched for execution,incrementing the counter each time the first thread requests memory for an object, andcalculating the object creation rate when the first thread finishes executing; and upon determining the object creation rate for the first thread exceeds a specified threshold, reducing an execution priority of each thread in the pool of threads, wherein the object creation rate is based on the creation of objects relative to a unit of time.
地址 Armonk NY US