期刊文献+

线程池技术在网络服务器中的应用 被引量:10

Application of Thread Pool Technique in Network Server
下载PDF
导出
摘要 目前的网络服务器大多为C/S架构,其线程响应客户端要么短且频繁,要么长而连续,这两种服务请求均要求服务器根据系统负载提供稳定的响应时间,并在高并发情况下保证服务器系统的工作稳定性。传统的多线程技术虽能通过并发服务器发挥较好的性能,但线程频繁的创建与销毁会导致巨大的系统开销。为此,在研究线程池技术机理的基础上,针对常见的线程池容量估算的弊端,提出了经优化的池线程容量估算方法。该方法引入经优化的池线程,以解决因大量客户端服务请求所导致的服务器不稳定问题。线程池性能测试与验证结果表明,采用所提出的线程池容量估算方法和线程池策略,有效地降低了因频繁创建线程而导致的系统开销,既保证了高负载条件下服务器的稳定性,又能够为服务器提供稳定的吞吐量。 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. Tra- ditional multi-threading technology can provide excellent performance in the concurrent server,but can lead to huge system overhead be- cause 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 introduc- tion of the thread pool is employed to solve the instability because of a large number of client request thread creation and destruction cau- sing 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.
出处 《计算机技术与发展》 2017年第8期149-151,155,共4页 Computer Technology and Development
基金 国家自然科学基金资助项目(61271234)
关键词 多线程 线程池 线程池容量 服务器 multi-threading thread pool thread pool size server
  • 相关文献

参考文献7

二级参考文献47

  • 1潘清,李未,马世龙,张晓清,孙凌云.一种网络协议的自适应控制方法[J].计算机学报,2004,27(12):1612-1616. 被引量:5
  • 2王华,马亮,顾明.线程池技术研究与应用[J].计算机应用研究,2005,22(11):141-142. 被引量:44
  • 3张渊,崔滨,余小清,万旺根.线程池技术在网络游戏服务器中的应用[J].微计算机信息,2006,22(06X):42-44. 被引量:5
  • 4Brian Goetz.Thread Pool Help Achive Optimum Resource Utilization[EB/OL].http://www-900.ibm.com/developerWorks/c.n/java/jjtp0730/index_eng.shtml,2002-07
  • 5Jim Beveridge&Robert Wiener著,侯捷译.Win32多线程程序设计.华中科技大学,2002-01
  • 6陆魁军等编著.计算机网络工程实践教程-基于华为路由器和交换机,2006-07
  • 7Paul Hyde, Java Thread Programming.
  • 8http://httpd.apache.org/docs/, Apache documents 2001.
  • 9Doug Lea,Concurrent Programming in Javatm Design principles and patterns.
  • 10Ewa Kusmierek, Synchronization of Java Threads, master thesis,May 1997.

共引文献65

同被引文献60

引证文献10

二级引证文献52

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部