Skip to content

Commit 1fb2118

Browse files
committed
IO
1 parent 24a5dbf commit 1fb2118

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

MD/Java基础-IO.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
## BIO
2-
Block-IO:InputStream和OutputStream,Reader和Writer
2+
Block-IO:InputStream和OutputStream,Reader和Writer。属于同步阻塞模型
33

44
同步阻塞:
55

66
![](https://github.com/xbox1994/2018-Java-Interview/raw/master/images/BIO.png)
77

88
## NIO
9-
NonBlock-IO:Channel、Buffer、Selector。IO多路复用、同步非阻塞
9+
NonBlock-IO:Channel、Buffer、Selector。属于IO多路复用的同步非阻塞模型
1010

1111
同步非阻塞:
1212

@@ -27,7 +27,7 @@ IO多路复用:相当于对同步非阻塞的优化版本,区别在于I/O多
2727
3. NIO提供直接内存复制方式,消除了JVM与操作系统之间读写内存的损耗
2828

2929
## AIO
30-
Asynchronous IO:基于事件和回调机制、异步非阻塞
30+
Asynchronous IO:属于事件和回调机制的异步非阻塞模型
3131

3232
![](https://github.com/xbox1994/2018-Java-Interview/raw/master/images/AIO.png)
3333

images/NIO-2.png

237 KB
Loading

0 commit comments

Comments
 (0)