Skip to content

Commit

Permalink
Merge pull request #2431 from DavidWhom/patch-1
Browse files Browse the repository at this point in the history
Update nio-basis.md
  • Loading branch information
Snailclimb authored Jul 17, 2024
2 parents b392abd + b5c1dcb commit 538b290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/java/io/nio-basis.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public class NioSelectorExample {

零拷贝是提升 IO 操作性能的一个常用手段,像 ActiveMQ、Kafka 、RocketMQ、QMQ、Netty 等顶级开源项目都用到了零拷贝。

零拷贝是指计算机执行 IO 操作时,CPU 不需要将数据从一个存储区域复制到另一个存储区域,从而可以减少上下文切换以及 CPU 的拷贝时间。也就是说,零拷贝主主要解决操作系统在处理 I/O 操作时频繁复制数据的问题。零拷贝的常见实现技术有: `mmap+write``sendfile``sendfile + DMA gather copy`
零拷贝是指计算机执行 IO 操作时,CPU 不需要将数据从一个存储区域复制到另一个存储区域,从而可以减少上下文切换以及 CPU 的拷贝时间。也就是说,零拷贝主要解决操作系统在处理 I/O 操作时频繁复制数据的问题。零拷贝的常见实现技术有: `mmap+write``sendfile``sendfile + DMA gather copy`

下图展示了各种零拷贝技术的对比图:

Expand Down

0 comments on commit 538b290

Please sign in to comment.