Linux下基于epoll+线程池高并发服务器实现研究  被引量:16

The researchon realization of high concurrent server base on epoll plus threadpool in Linux

在线阅读下载全文

作  者:梁明刚[1] 陈西曲[1] 

机构地区:[1]武汉工业学院电气与电子工程学院,湖北武汉430023

出  处:《武汉工业学院学报》2012年第3期54-59,共6页Journal of Wuhan Polytechnic University

基  金:湖北省自然科学基金项目(2011CHB030)

摘  要:在介绍linux系统下基于TCP/IP协议的socket网络编程的客户端和服务器(client/server)基本模型、线程池和epoll机制的基础上,给出了基于epoll+线程池高并发服务器设计的详细算法。最后,给出一个在linux环境下用C语言编写的基于epoll和线程池技术的服务器和客户端实验程序,实现了服务器和客户端之间并发通信以及实验结果的截图。实验结果表明,基于epoll+线程池技术设计出来的高并发服务器能够保证服务器和客户端之间稳定高效的通信。This paper describles the normal client and server (client/server) model of network communication pro- gram 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 lan- guage ,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.

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

分 类 号:TP312[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象