Java 实现零拷贝
![Java实现零拷贝](https://static001.geekbang.org/infoq/e3/e3a025cea1edb5f87d67c5b980f35112.png)
百度百科对零拷贝是指计算机执行操作时,CPU 不需要先将数据从某处内存复制到另一个特定区域。这种技术通常用于通过网络传输文件时节省 CPU 周期和内存带宽。
Linux 官方的解释是:What is Zero Copy. “Zero”: Means that the number of times of copying data is 0. “Copy”: Means that the data is transferred from one storage to another storage area. So, if you put both “zero” and “copy” together, “zero copy” means that when the computer performs IO operations, the CPU does not need to copy data from one storage area to another, thereby reducing context switching and CPU copy time. It is an IO operation optimization technology.
复制代码
版权声明: 本文为 InfoQ 作者【极客罗杰】的原创文章。
原文链接:【http://xie.infoq.cn/article/cc8573f4a8ace1cc37ffde308】。文章转载请联系作者。
评论