东北大学学报(自然科学版) ›› 2006, Vol. 27 ›› Issue (10): 1091-1094.DOI: -

• 论著 • 上一篇    下一篇

基于对象池模式的自适应线程池技术

夏利;赵静波;井惟栋;王光兴;   

  1. 东北大学信息科学与工程学院;中兴通讯股份有限公司南京研发中心;东北大学信息科学与工程学院;东北大学信息科学与工程学院 辽宁沈阳110004;江苏南京210012;辽宁沈阳110004;辽宁沈阳110004
  • 收稿日期:2013-06-23 修回日期:2013-06-23 出版日期:2006-10-15 发布日期:2013-06-23
  • 通讯作者: Xia, L.
  • 作者简介:-
  • 基金资助:
    国家高技术研究发展计划项目(708-4-5);;

Adaptive thread pool technique based on object pool pattern

Xia, Li (1); Zhao, Jing-Bo (2); Jing, Wei-Dong (1); Wang, Guang-Xing (1)   

  1. (1) School of Information Science and Engineering, Northeastern University, Shenyang 110004, China; (2) Nanjing Institute of ZTE Corporation, Nanjing 210012, China
  • Received:2013-06-23 Revised:2013-06-23 Online:2006-10-15 Published:2013-06-23
  • Contact: Xia, L.
  • About author:-
  • Supported by:
    -

摘要: 针对如何确定线程池中线程数量问题,提出了一种基于对象池模式的自适应线程池技术,采用灰色系统理论预测算法来预测需要线程的数量,使线程池中线程的数量与所需值保持一致,从而为在提高服务器使用效率的同时保证用户的服务质量提供了一个解决方案.这种线程池技术应用于电话缴费系统的设计,获得了良好的效果.

关键词: 线程池, 自适应, 设计模式, 灰色系统理论, 预测算法, QoS

Abstract: To determine the number of threads in thread pool, an adaptive thread pool technique based on object pool design-pattern is proposed utilizing the prediction algorithm based grey system theory to predict the number of threads in thread pool in keeping with that required. Then, a scheme is presented to improve efficiency of server and ensure the QoS for client. The scheme utilizing adaptive thread pool technique has been applied to develop the telephone fee payment system and its performance is improved as expected.

中图分类号: