资 源 简 介
使用JAVA I/O和 NI/O编写的两种网络ECHO服务器,用以学习两种IO的不同编程方法,体验基于阻塞与非阻塞IO开发高性能网络应用程序的具体实例.Java平台传统的I/0系统基于byte(字节)和Stream(数据流)。这种模式下的I/O 操作以字节为单位,以流的方式处理数据。而NIO( New I/O )以块的方式处理数据,它的系统操作面向Buffer(缓冲),Channel(通道)和Selector(选择器),不再是字节,这种模式利用了操作系统管理内存和文件的方式,并将一些耗时操作直接转移给操作系统,使JavaI/O的速度得以提高、性能得到了明显的改善
-The use of JAVA I/O and NI/O, prepared by two types of network servers ECHO to learn two different programming methods IO experience obstructive and non-blocking IO based on the development of high-performance network applications specific examples. Java platform for the traditional I/0 system is based on the byte (byte) and Stream (data streams). This mode of I/O operation in bytes in order to deal with data flow way. The NIO (New I/O) blocks the way to deal with data, its system for Buffer (buffer), Channel (channel) and the Selector (selector), is no longer a byte, this mode of use of operating system management of memory and the manner in which documents, and some time-consuming operation of a direc