检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[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[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.222