Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1452076
  • 博文数量: 596
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 173
  • 用 户 组: 普通用户
  • 注册时间: 2016-07-06 15:50
个人简介

在线笔记

文章分类

全部博文(596)

文章存档

2016年(1)

2015年(104)

2014年(228)

2013年(226)

2012年(26)

2011年(11)

发布时间:2013-04-17 10:39:58

select、poll、epoll的比较http://my.chinaunix.net/space.php?uid=20196318&do=blog&id=366042http://blog.endlesscode.com/2010/03/27/select-poll-epoll-intro/ linux提供了select、poll、epoll接口来实现IO复用,三者的原型如下所示,本文从参数、实现、性能等方面对三者进行对比。.........【阅读全文】

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

发布时间:2013-01-28 16:37:30

1 selectselect()系统调用提供一个机制来实现同步多元I/O:#include #include #include int select (int n,fd_set *readfds,fd_set *writefds,fd_set *exceptfds,struct timeval *timeout);FD_CLR(int fd, fd_set *set);FD_ISSET(int fd, fd_set *set);.........【阅读全文】

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

登录 注册