摘要
在对I/O完成端口进行底层封装的基础上,提出一种具有高性能的、可扩展性的通用网络通信模块设计方案。该方案采用多种系统性能优化技术,如线程池、对象池和环形缓存区等。该模块在Win32平台上用C++开发完成,经过严格的压力和性能测试后,实验结果表明该模块能够支持海量并发连接,具有较高的数据吞吐量,在实际项目应用中也取得了良好的表现。
On the base of underlying encapsulation for I/O Completion Port(IOCP), this paper presents a design solution with high performance and scalable module of generic network communication, which emploies a variety of optimization techniques of system performance, such as thread pool, object pool and ring buffer. The module is developed in C++ programming language on Win32 platform. Experimental results show that the module can support massive concurrent connections, and has higher data throughput based on severe pressure and performance tests. The proposed solution has also got a good performance in the actual project application.
出处
《计算机工程》
CAS
CSCD
北大核心
2009年第3期103-105,114,共4页
Computer Engineering
基金
广东省教育部产学研结合基金资助项目"基于RFID技术石化产品计量监控管理系统应用研究与开发"(2007A090302094)
关键词
完成端口
服务器
多线程
线程池
对象池
缓存区
completion port
server
multi-threading
thread pool
object pool
ring buffer