作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2011, Vol. 37 ›› Issue (2): 43-44. doi: 10.3969/j.issn.1000-3428.2011.02.015

• 软件技术与数据库 • 上一篇    下一篇

基于分段的线程池尺寸自适应调整算法

孙旭东a,韩江洪a,c,刘征宇b,解新胜a   

  1. (合肥工业大学 a. 计算机与信息学院;b. 机械与汽车工程学院;c. 安全关键工业测控技术教育部工程研究中心,合肥 230009)
  • 出版日期:2011-01-20 发布日期:2011-01-25
  • 作者简介:孙旭东(1983-),男,硕士研究生,主研方向:分布式控制;韩江洪,教授、博士生导师;刘征宇,讲师、博士研究生; 解新胜,工程师

Thread Pool Size Adaptive Adjusting Algorithm Based on Segmentation

SUN Xu-dong a, HAN Jiang-honga, c, LIU Zheng-yu b, XIE Xin-sheng a   

  1. (a. School of Computer and Information; b. School of Mechanical and Automotive Engineering;c. Engineering Research Center of Safety Critical Industry Measure and Control Technology of Ministry of Education,Hefei University of Technology, Hefei 230009, China)
  • Online:2011-01-20 Published:2011-01-25

摘要: 提出一种基于分段的线程池尺寸自适应调整算法。该算法将用户请求量分为上升段、平衡段和下降段3段,根据当前用户请求数、线程数自适应调整线程池尺寸,从而满足用户需求。实验结果表明,相比基于平均数的调整算法,该算法能更好地处理并发的用户请求,响应时间更短。

关键词: 线程池, 并发用户请求, 尺寸自适应调整

Abstract: This paper presents a thread pool size adaptive adjusting algorithm based on segmentation. User request quantity is divided into rising balancing and dropping section. This algorithm changes the size of the thread pool based on present request and thread in order to meet need of user requirement. Experimental results show that this algorithm can effectively process multiple concurrent requests, its response time is shorter compared with adjusting algorithm based average value.

Key words: thread pool, concurrent user request, size adaptive adjusting

中图分类号: