Skip to content

Commit d40d121

Browse files
authored
Update BIO,NIO,AIO summary.md
1 parent 41a4fdf commit d40d121

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Java相关/BIO,NIO,AIO summary.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
- [2.3 NIO 读数据和写数据方式](#23-nio-读数据和写数据方式)
1919
- [2.4 NIO核心组件简单介绍](#24-nio核心组件简单介绍)
2020
- [2.5 代码示例](#25-代码示例)
21-
- [AIO \(Asynchronous I/O\)](#aio-asynchronous-io)
21+
- [3. AIO \(Asynchronous I/O\)](#3-aio-asynchronous-io)
2222
- [参考](#参考)
2323

2424
<!-- /MarkdownTOC -->
@@ -333,7 +333,7 @@ public class NIOServer {
333333

334334
Netty 的出现很大程度上改善了 JDK 原生 NIO 所存在的一些让人难以忍受的问题。
335335

336-
### AIO (Asynchronous I/O)
336+
### 3. AIO (Asynchronous I/O)
337337

338338
AIO 也就是 NIO 2。在 Java 7 中引入了 NIO 的改进版 NIO 2,它是异步非阻塞的IO模型。异步 IO 是基于事件和回调机制实现的,也就是应用操作之后会直接返回,不会堵塞在那里,当后台处理完成,操作系统会通知相应的线程进行后续的操作。
339339

@@ -344,4 +344,4 @@ AIO 是异步IO的缩写,虽然 NIO 在网络操作中,提供了非阻塞的
344344
## 参考
345345

346346
- 《Netty 权威指南》第二版
347-
- https://zhuanlan.zhihu.com/p/23488863 (美团技术团队)
347+
- https://zhuanlan.zhihu.com/p/23488863 (美团技术团队)

0 commit comments

Comments
 (0)