We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fb2118 commit 2f9617aCopy full SHA for 2f9617a
MD/Java基础-IO.md
@@ -18,7 +18,7 @@ IO多路复用:相当于对同步非阻塞的优化版本,区别在于I/O多
18
19
在Java的NIO中,是基于Channel和Buffer进行操作,数据总是从通道读取到缓冲区中,或者从缓冲区写入到通道中。Selector用于监听多个通道的事件(比如:连接打开,数据到达)。因此,单个线程可以监听多个数据通道,select方法会一直阻塞,直到channel中有事件就绪:
20
21
-
+
22
23
与BIO区别如下:
24
images/NIO-2.png renamed to images/NIO-4.png
0 commit comments