# IO 篇

该模块主要是介绍 `IO` 方面的知识；

* `NIO`, `AIO`；
* 网络编程相关；
* 多线程、多核 CPU、进程之间的关系（因为这些跟 IO 都有关系，所有放在该篇来介绍）。

## NIO 和 AIO

主要会用 `JDK` 原始 `NIO`、 `AIO` 相关 `API` 去实现 `Socket` 网路编程小实例； 以及使用 `Netty` 实现网络编程的小实例；然后说明一些使用 `Netty` 的好处。

### `Linux` 系统 `IO` 模型介绍

//TODO

### `IO` 相关 `API` 介绍

//TODO

### `NIO` 相关 `API` 介绍

//TODO

### `AIO` 相关 `API` 介绍

//TODO


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tommyyang.gitbook.io/javainterview/io.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
