摘要
传统的C/S实现都是为每个请求创建一个独立的线程来处理客户的请求,但这种实现在客户端请求并发量巨大的情况时效率低下,于是出现了IOCP。本文从IOCP的基本概念和原理出发,比较IOCP与传统C/S实现的利弊,分析了Java中异步I/O和IOCP的具体实现,并以一个实例分析和介绍了IOCP在具体实践中的应用。
Traditional C/S creates a new thread to handle the request from each client,which is lack of efficiency when massive clients request service at the same time,so IOCP(Input/Output Completion Port) comes.This paper states basic conceptions and principle of IOCP,and compares the advantages and disadvantages of IOCP and C/S,and analyzes implementation detail of asynchronous I/O and IOCP,at last shows an example of IOCP.
出处
《科技广场》
2013年第8期83-87,共5页
Science Mosaic