加载中
Nonblocking I/O 与 Asynchronous I/O

Nonblocking IO 使用的是 polling (轮询)的方法(主动去问), 而 异步IO 使用的是信号机制(等待系统通知)

2015/03/26 13:49
10
13,NIO vs IO

13 NIO vs IO http://tutorials.jenkov.com/java-nio/nio-vs-io.html When studying both the Java NIO and IO API's, a question quickly pops into mind: When should I use IO and when s...

2015/01/28 19:36
10
12, Pipe

http://tutorials.jenkov.com/java-nio/pipe.html A Java NIO Pipe is a one-way data connection between two threads. A Pipe has a source channel and a sink channel. You write data t...

2015/01/28 19:31
14
11, DatagramChanne

11, DatagramChannel: http://tutorials.jenkov.com/java-nio/datagram-channel.html A Java NIO DatagramChannel is a channel that can send and receive UDP packets. Since UDP is a c...

2015/01/28 19:30
6
10,Java NIO SeverSocketChannel

11,DatagramChannel; 12,Pipe ; 13, NIO vs IO

2015/01/27 17:14
74
9, Java NIO SocketChannel

A Java NIO SocketChannel is a channel that is connected to a TCP network socket. It is Java NIO's equivalent of Java Networking's Sockets. There are two ways a SocketChannel can...

2015/01/27 17:07
15
8,Java NIO FileChannel

A Java NIO FileChannel is a channel that is connected to a file. Using a file channel you can read data from a file, and write data to a file. The Java NIO FileChannel class is ...

2015/01/27 17:01
8
7,Java NIO Selector

A Selector is a Java NIO component which can examine one or more NIO Channel's, and determine which channels are ready for e.g. reading or writing. This way a single thread can ...

2015/01/27 16:59
36
6, Java NIO Channel to Channel Transfers

In Java NIO you can transfer data directly from one channel to another, if one of the channels is a FileChannel. The FileChannel class has a transferTo() and a transferFrom() me...

2015/01/27 16:41
45
5, Java NIO Scatter / Gather

Java NIO comes with built-in scatter / gather support. Scatter / gather are concepts used in reading from, and writing to channels. A scattering read from a channel is a read op...

2015/01/27 16:39
31
4, Java NIO Buffer

Java NIO Buffers are used when interacting with NIO Channels. As you know, data is read from channels into buffers, and written from buffers into channels. A buffer is essential...

2015/01/27 16:12
17
3,Java NIO Channel

Java NIO Channels are similar to streams with a few differences: You can both read and write to a Channels. Streams are typically one-way (read or write). Channels can be read a...

2015/01/27 16:01
5
2,Java NIO Overview

Java NIO consist of the following core components: Channels Buffers Selectors Java NIO has more classes and components than these, but the Channel, Buffer and Selector forms the...

2015/01/27 15:52
55
1,Java NIO Tutorial

Java NIO (New IO) is an alternative IO API for Java (from Java 1.4), meaning alternative to the standard Java IO andJava Networking API's. Java NIO offers a different way of wor...

2015/01/27 15:44
50
java.nio

特性: 1,字符集编码器和解码器 2,非阻塞的IO 3,内存映射文件 4,文件加锁机制 内存映射相关: 虚拟内存机制的利用, 文件通道(channel),通道是用于磁盘文件的一种抽象,它使我们可以访...

2015/01/15 16:54
76

没有更多内容

加载失败,请刷新页面

没有更多内容

返回顶部
顶部