2014年(83)
发布时间:2014-07-17 14:39:46
LT模式:epoll就是一个快速版poll,可读可写就绪条件和传统poll一致ET模式:为了避免Starvation,建议 1)文件描述符设置为非阻塞 2)只在read或write返回EAGAIN后,才能调用下一次epoll_wait .........【阅读全文】
发布时间:2014-07-17 14:39:41
man 7 epoll会发现这个东西,就是使用epoll中会遇到的问题:If using an event cache… If you use an event cache or store all the file descriptors returned from epoll_wait(2), then make sure to provide a way to mark its closure dynamically (i.e., caused by a previous event's processing). Suppose .........【阅读全文】