[1]吉利,潘林云,刘姚. 线程池技术在网络服务器中的应用[J].计算机技术与发展,2017,27(08):149-151.
 JI Li,PAN Lin-yun,LIU Yao. Application of Thread Pool Technique in Network Server[J].,2017,27(08):149-151.
点击复制

 线程池技术在网络服务器中的应用()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
27
期数:
2017年08期
页码:
149-151
栏目:
应用开发研究
出版日期:
2017-08-10

文章信息/Info

Title:
 Application of Thread Pool Technique in Network Server
文章编号:
1673-629X(2017)08-0149-03
作者:
 吉利潘林云刘姚
 南京邮电大学 通信与信息工程学院
Author(s):
 JI LiPAN Lin-yunLIU Yao
关键词:
 多线程线程池线程池容量服务器
Keywords:
 multi-threadingthread poolthread pool sizeserver
分类号:
TP39
文献标志码:
A
摘要:
目前的网络服务器大多为C/S架构,其线程响应客户端要么短且频繁,要么长而连续,这两种服务请求均要求服务器根据系统负载提供稳定的响应时间,并在高并发情况下保证服务器系统的工作稳定性.传统的多线程技术虽能通过并发服务器发挥较好的性能,但线程频繁的创建与销毁会导致巨大的系统开销.为此,在研究线程池技术机理的基础上,针对常见的线程池容量估算的弊端,提出了经优化的池线程容量估算方法.该方法引入经优化的池线程,以解决因大量客户端服务请求所导致的服务器不稳定问题.线程池性能测试与验证结果表明,采用所提出的线程池容量估算方法和线程池策略,有效地降低了因频繁创建线程而导致的系统开销,既保证了高负载条件下服务器的稳定性,又能够为服务器提供稳定的吞吐量.
Abstract:
 Network servers often use C/S architecture as the main framework currently.The server needs to create a thread frequently in response to a client short or long and continuous service requests.Each type of server requests are required to be able to provide a stable system load according to the response time for the request and guarantee the stability of the server system under the high concurrency.Traditional multi-threading technology can provide excellent performance in the concurrent server,but can lead to huge system overhead because of its frequent thread creation and destruction.An optimization method for estimating the capacity has been proposed according to the disadvantages of common thread pool capacity estimation so as to improve the thread pool server performance,in which the introduction of the thread pool is employed to solve the instability because of a large number of client request thread creation and destruction causing borderless.Thread pool performance testing and verification results show that thread pool takes a more excellent concurrency control strategy and has provided the stable throughput for the server.

相似文献/References:

[1]龚向坚 邹腊梅 隆重.基于分布对象的虚拟网络实验系统设计与实现[J].计算机技术与发展,2010,(01):111.
 GONG Xiang-jian,ZOU La-mei,LONG Zhong.Design and Realization of Virtual Network Laboratory System Based on Distributing Object[J].,2010,(08):111.
[2]曹廷发 吉华 马江 付耀国.Linux/RTLinux下实时多线程实时性检测方法[J].计算机技术与发展,2010,(03):113.
 CAO Ting-fa,JI Hua,MA Jiang,et al.Real - time Performance Test Methods for Real - time Multi - thread Based Linux/RTLinux[J].,2010,(08):113.
[3]严颖 汪峥.单件生产实验系统控制及仿真的多线程实现[J].计算机技术与发展,2010,(02):197.
 YAN Ying,WANG Zheng.Multi- Thread- Based Implementation of Control and Simulation for an Experimental One - of- a - Kind Production System[J].,2010,(08):197.
[4]詹金兰 李翠华.模拟实验系统的可视化研究[J].计算机技术与发展,2009,(05):228.
 ZHAN Jin-lan,LI Cui-hua.Visualization Research on Simulation Experiment System[J].,2009,(08):228.
[5]黄辉 李革新 张华.连锁业务中远程数据传输的研究与实现[J].计算机技术与发展,2009,(08):169.
 HUANG Hui,LI Ge-xin,ZHANG Hua.Research and Implementation of Remote Data Transmission in Chain Business System[J].,2009,(08):169.
[6]苏成顺 李贞培.基于多线程的分段图像轮廓跟踪算法[J].计算机技术与发展,2009,(10):99.
 SU Cheng-shun,LI Zhen-pei.Algorithm for Multi- Segment Image Contour Following Based on Multithreading[J].,2009,(08):99.
[7]郭娟 许志才 方贤文.基于Petri网的Java多线程程序分析[J].计算机技术与发展,2009,(04):51.
 GUO Juan,XU Zhi-cai,FANG Xian-wen.Multi - Thread Analysis about Java Program Based on Petri Net[J].,2009,(08):51.
[8]张炯 吕紫旭 刘栋 金惠华.实时操作系统ThreadX剖析[J].计算机技术与发展,2008,(01):22.
 ZHANG Jiong,LU Zi-xu,LIU Dong,et al.Analysis of Real Time Operating System: ThreadX[J].,2008,(08):22.
[9]谢世环 徐中伟 胡天一.车站列控中心测试平台——通信仿真子系统研究[J].计算机技术与发展,2008,(01):243.
 XIE Shi-huan,XU Zhong-wei,HU Tian-yi.Study on Testing Platform for Train Control Center——Simulation of Communication Sub - System[J].,2008,(08):243.
[10]雷超 陈伟.一种火控雷达终端显示器的仿真实现[J].计算机技术与发展,2008,(04):195.
 LEI Chao,CHEN Wei.Realization of Simulation for a Fire Control Radar Terminal Display[J].,2008,(08):195.
[11]贾富强[],赵阳[]. 基于VC++串口通信软件的设计与实现[J].计算机技术与发展,2015,25(06):158.
 JIA Fu-qiang[],ZHAO Yang[]. Design and Implementation of Serial Communication Software Based on VC++[J].,2015,25(08):158.
[12]张海洋. 船载天线串口数据采集系统的设计与实现[J].计算机技术与发展,2016,26(01):150.
 ZHANG Hai-yang. Design and Implementation of Serial Data Acquisition System for Ship Antenna[J].,2016,26(08):150.
[13]郝朝,药红红,山寿. 基于OSG的飞行器实时监控软件设计[J].计算机技术与发展,2017,27(04):21.
 HAO Zhao,YAO Hong-hong,SHAN Shou. Design of Aircraft Real-time Monitoring Software Based on OSG[J].,2017,27(08):21.
[14]冯林静. 多核的并行相似连接[J].计算机技术与发展,2017,27(07):43.
 FENG Lin-jing. Parallel Similarity Join of Multi-core[J].,2017,27(08):43.

更新日期/Last Update: 2017-09-21