首页 | 本学科首页   官方微博 | 高级检索  
     

Linux下基于epoll+线程池高并发服务器实现研究
引用本文:梁明刚,陈西曲.Linux下基于epoll+线程池高并发服务器实现研究[J].武汉工业学院学报,2012,31(3):54-59.
作者姓名:梁明刚  陈西曲
作者单位:武汉工业学院电气与电子工程学院,湖北武汉,430023
基金项目:湖北省自然科学基金项目(2011CHB030)
摘    要:在介绍linux系统下基于TCP/IP协议的socket网络编程的客户端和服务器(client/server)基本模型、线程池和epoll机制的基础上,给出了基于epoll+线程池高并发服务器设计的详细算法.最后,给出一个在linux环境下用C语言编写的基于epoU和线程池技术的服务器和客户端实验程序,实现了服务器和客户端之间并发通信以及实验结果的截图.实验结果表明,基于epoll+线程池技术设计出来的高并发服务器能够保证服务器和客户端之间稳定高效的通信.

关 键 词:linux系统  高并发服务器  线程池  epoll机制

The researchon realization of high concurrent server base on epoll plus threadpool in Linux
LIANG Ming-gang , CHEN Xi-qu.The researchon realization of high concurrent server base on epoll plus threadpool in Linux[J].Journal of Wuhan Polytechnic University,2012,31(3):54-59.
Authors:LIANG Ming-gang  CHEN Xi-qu
Affiliation:(School of Electrical and Electronic Engineering,WuHan Polytechnic University,Wuhan 430023,China)
Abstract:This paper describles the normal client and server(client/server) model of network communication program based on the technology of socket with TCP/IP protocol,the technology of threadpool and epoll mechanism.And then it gives the detail algorithm with the technology of threadpool and epoll to accomplish the high concurrent server.In the end,this paper exhibits an application example based on the algorithm,which is written by C language,in the Linux system and the result photos.The result shows that the concurrent server with the technology of epoll plus threadpool can make sure the communication between server and clients is stable and efficient.
Keywords:Linux  high concurrent server  threadpool  epoll mechanism
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号