发明名称 Determining whether to retain or terminate a thread based on a minimum number of threads in a thread pool and a maximum number of threads allowed waiting on the channel
摘要 Provided are techniques for workload balancing. A message is received on a channel. A thread in a thread pool is selected to process the message. In response to determining that the message has been processed and a response has been sent on the channel by the thread, it is determined whether a total number of threads in the thread pool is greater than a low water mark plus one and whether the channel has more than a maximum number of threads blocked on a receive, wherein the low water mark represents a minimum number of threads in the thread pool. In response to determining that a number of threads in the thread pool is greater than the low water mark plus one and that the channel has more than the maximum number of threads blocked on a receive, the thread is terminated. In response to determining at least one of the number of threads in the thread pool is less than or equal to the low water mark plus one and the channel has less than or equal to the maximum number of threads blocked on a receive, the thread is retained.
申请公布号 US8122449(B2) 申请公布日期 2012.02.21
申请号 US20070852039 申请日期 2007.09.07
申请人 BERMAN STEVEN M.;NIRANJAN THIRUMALE;YOUNG MICHAEL WAYNE;INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 BERMAN STEVEN M.;NIRANJAN THIRUMALE;YOUNG MICHAEL WAYNE
分类号 G06F9/46;G06F15/16 主分类号 G06F9/46
代理机构 代理人
主权项
地址