Skip to content

Commit 2f9617a

Browse files
committed
IO
1 parent 1fb2118 commit 2f9617a

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

MD/Java基础-IO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ IO多路复用:相当于对同步非阻塞的优化版本,区别在于I/O多
1818

1919
在Java的NIO中,是基于Channel和Buffer进行操作,数据总是从通道读取到缓冲区中,或者从缓冲区写入到通道中。Selector用于监听多个通道的事件(比如:连接打开,数据到达)。因此,单个线程可以监听多个数据通道,select方法会一直阻塞,直到channel中有事件就绪:
2020

21-
![](https://github.com/xbox1994/2018-Java-Interview/raw/master/images/NIO-2.png)
21+
![](https://github.com/xbox1994/2018-Java-Interview/raw/master/images/NIO-4.png)
2222

2323
与BIO区别如下:
2424

File renamed without changes.

0 commit comments

Comments
 (0)