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

单客户机-多服务器模式下IOCP的应用与研究
引用本文:王震,徐博,解永平,孙加奉.单客户机-多服务器模式下IOCP的应用与研究[J].计算机科学,2011(Z1).
作者姓名:王震  徐博  解永平  孙加奉
作者单位:大连理工大学信息与通信工程学院;中国移动大连分公司;
摘    要:对特定网络应用中的单客户机-多服务器模型进行了分析,给出了基于IOCP的客户机基本实现,又给出了线程调度、异步连接等IOCP框架中的实现方法。针对不定长数据接收的要求,对内存池管理、缓冲区设置等问题进行了分析与设计。连接测试和吞吐能力测试的结果表明,本设计具备高效较大数量连接和数据处理的能力。通过实验方式给出了IOCP线程数设置的建议。

关 键 词:单客户机-多服务器  完成端口  多线程  内存池  缓冲区  

Application and Study of IOCP in Single Client-multi Server Model
WANG Zhen XU Bo XIE Yong-ping SUN Jia-feng.Application and Study of IOCP in Single Client-multi Server Model[J].Computer Science,2011(Z1).
Authors:WANG Zhen XU Bo XIE Yong-ping SUN Jia-feng
Affiliation:WANG Zhen1 XU Bo2 XIE Yong-ping1 SUN Jia-feng1(School of Information and Communication Engineering,Dalian University of Technology,Dalian 116024,China)1(Dalian Branch of China Mobile,Dalian 116021,China)2
Abstract:This paper analyzed a single client-multi-server model based on specific network applications.This paper not only gave the client basic implementation based on IOCP,but also gave the thread scheduling,asynchronous connections IOCP framework method.Aiming at receiving variable length data for the request,memory pool management and buffer settings were analyzed and designed.By connecting test and throughput test,results show that this design has capabilities of a large number of connections and efficient data...
Keywords:Single client-multi server  IOCP  Multi-thread  Memory Pool  Buffer  
本文献已被 CNKI 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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