计算机技术与发展2017,Vol.27Issue(8):149-151,155,4.DOI:10.3969/j.issn.1673-629X.2017.08.031
线程池技术在网络服务器中的应用
Application of Thread Pool Technique in Network Server
摘要
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.关键词
多线程/线程池/线程池容量/服务器Key words
multi-threading/thread pool/thread pool size/server分类
信息技术与安全科学引用本文复制引用
吉利,潘林云,刘姚..线程池技术在网络服务器中的应用[J].计算机技术与发展,2017,27(8):149-151,155,4.基金项目
国家自然科学基金资助项目(61271234) (61271234)