文件名称:epoll
介绍说明--下载内容来自于网络,使用问题请自行百度
在linux的网络编程中,很长的时间都在使用select来做事件触发。在linux新的内核中,有了一种替换它的机制,就是epoll。
相比于select,epoll最大的好处在于它不会随着监听fd数目的增长而降低效率。因为在内核中的select实现中,它是采用轮询来处理的,轮询的fd数目越多,自然耗时越多(In Linux network programming, long time used in the select to do event trigger. In the new Linux kernel, there is a kind of mechanism of replacing it, is the epoll.
Compared to select, epoll biggest advantage is that it will not be reduced as the number of monitored fd increase efficiency. Because in the implementation of the select kernel, it is to use the polling to deal with it, the number of fd polling, the more natural the more time-consuming)
相比于select,epoll最大的好处在于它不会随着监听fd数目的增长而降低效率。因为在内核中的select实现中,它是采用轮询来处理的,轮询的fd数目越多,自然耗时越多(In Linux network programming, long time used in the select to do event trigger. In the new Linux kernel, there is a kind of mechanism of replacing it, is the epoll.
Compared to select, epoll biggest advantage is that it will not be reduced as the number of monitored fd increase efficiency. Because in the implementation of the select kernel, it is to use the polling to deal with it, the number of fd polling, the more natural the more time-consuming)
相关搜索: linux epall服务器
(系统自动生成,下载前可以参看下载内容)
下载文件列表
epoll.c
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.