首页 > 其他 > 详细

epoll

时间:2018-06-18 16:26:02      阅读:220      评论:0      收藏:0      [点我收藏+]

epoll is a Linux kernel system call for a scalable I/O event notification mechanism, first introduced in version 2.5.44 of the Linux kernel mainline.[1] Its function is to monitor multiple file descriptors to see if I/O is possible on any of them. It is meant to replace the older POSIX select(2) and poll(2) system calls, to achieve better performance in more demanding applications, where the number of watched file descriptors is large (unlike the older system calls, which operate in O(n) time, epoll operates in O(1) time[2]).

epoll is similar to FreeBSD‘s kqueue, in that it consists of a set of user space functions, each taking a file descriptor argument denoting the configurable kernel object against which they cooperatively operate.

Application

android/system/core/healthd/healthd.cpp

Reference

https://en.wikipedia.org/wiki/Epoll

epoll

原文:https://www.cnblogs.com/youchihwang/p/9195408.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!