Description: 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 direct transfer to the operating system, so that JavaI/O speed will be increased and performance improved significantly
To Search:
File list (Check if you may need any files):
EchoMultiServerThread.java
SocketChannelDemo.java