现在的位置: 首页 > 综合 > 正文

JDK 在linux下支持epoll了

2011年10月31日 ⁄ 综合 ⁄ 共 628字 ⁄ 字号 评论关闭
文章:
http://blogs.sun.com/alanb/entry/epoll

JDK 6.0 nio支持epoll,对并发idle connection会有大幅度的性能提升,这就是很多网络服务器应用程序需要的。

One of the updates in build 59 of
Mustang
(JavaTM SE 6)
is that the New I/O
Selector
implementation will use the
epoll event notification
facility when running on the Linux 2.6 kernel.

JDK 5.0 update 9也支持了。

The epoll SelectorProvider will be included in 5.0 update 9. To enable
it requires setting the system property
java.nio.channels.spi.SelectorProvider to the value
sun.nio.ch.EPollSelectorProvider.

5种IO模型:
阻塞IO
非阻塞IO
多路复用
信号驱动IO
异步IO

最好性能的还是异步IO,目前Java只能支持到多路复用一级,期待着以后Java 7.0/8.0支持异步IO,6.0是没有希望了。

温少的日志 2006-11-20 02:17 发表评论

文章来源:http://www.blogjava.net/jobs/archive/2006/11/20/82144.html

抱歉!评论已关闭.