为什么在 Netty 中引入了原生 epoll 支持? [英] Why native epoll support is introduced in Netty?
本文介绍了为什么在 Netty 中引入了原生 epoll 支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我相信 Java 的 NIO 库会在 Linux 机器上使用 epoll.在 Linux 机器上使用 Epoll 代替 NIO 有哪些优点.
I believe Java's NIO library will use epoll on Linux machines. What are all the advantages of using Epoll instead of NIO on Linux machines.
推荐答案
Netty 的 epoll 传输使用 epoll 边缘触发,而 java 的 nio 库使用级别触发.除此之外,epoll 传输公开了 java 的 nio 不存在的配置选项,如 TCP_CORK、SO_REUSEPORT 等.
Netty's epoll transport uses epoll edge-triggered while java's nio library uses level-triggered. Beside this the epoll transport expose configuration options that are not present with java's nio like TCP_CORK, SO_REUSEPORT and more.
这篇关于为什么在 Netty 中引入了原生 epoll 支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文