文件名称:20081015111532911ionio
- 所属分类:
- Internet/网络编程
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 2kb
- 下载次数:
- 0次
- 提 供 者:
- 郭*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
使用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 direct transfer to the operating system, so that JavaI/O speed will be increased and performance improved significantly
-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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
EchoMultiServerThread.java
SocketChannelDemo.java
SocketChannelDemo.java