摘要: epoll是Linux高效网络的基础,比如event poll(例如nodejs),是使用libev,而libev的底层就是epoll(只不过不同的平台可能用epoll,可能用kqueue)。epoll能够高效支持百万级别的句柄监听。 select需要轮询所有fd才能得知哪些fd有事件发生(在fd很 阅读全文
posted @ 2017-08-13 21:12 holoyong 阅读(1375) 评论(0) 推荐(0) 编辑
摘要: 1 public AsynchronousSocketChannel openAsynchronousSocketChannel(AsynchronousChannelGroup group) 2 throws IOException 3 { 4 return new UnixAsynchronou 阅读全文
posted @ 2017-08-13 15:49 holoyong 阅读(1239) 评论(1) 推荐(1) 编辑