Chinaunix首页 | 论坛 | 博客
  • 博客访问: 73876
  • 博文数量: 83
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 20
  • 用 户 组: 普通用户
  • 注册时间: 2012-03-30 00:36
文章分类

全部博文(83)

文章存档

2014年(83)

我的朋友

发布时间:2014-07-17 14:39:46

LT模式:epoll就是一个快速版poll,可读可写就绪条件和传统poll一致ET模式:为了避免Starvation,建议          1)文件描述符设置为非阻塞          2)只在read或write返回EAGAIN后,才能调用下一次epoll_wait      .........【阅读全文】

阅读(320) | 评论(0) | 转发(0)

发布时间: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 .........【阅读全文】

阅读(217) | 评论(0) | 转发(0)

发布时间:2014-07-17 14:39:37

......【阅读全文】

阅读(305) | 评论(0) | 转发(0)
mfs

发布时间:2014-07-17 14:39:04

......【阅读全文】

阅读(223) | 评论(0) | 转发(0)

发布时间:2014-07-17 14:39:01

......【阅读全文】

阅读(340) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册