EDIT: I mean, are there any technical barriers against such decision? Implementing
epoll would dramatically boost performance of many network applications. There should be some technical issue that I fail to notice.
migrated from stackoverflow.com Jan 5 '10 at 8:33
This question came from our site for professional and enthusiast programmers.
poll is much simpler for easy cases; it is probably just as efficient for small numbers of file descriptors. The caller doesn't need to worry about maintaining poll FDs and adding/removing FDs, they can just add all the ones they want on each call to poll.
My feeling is that they are complimentary, although poll COULD be implemented as a wrapper for epoll, it probably shouldn't be.
epoll could (almost) be implemented as a wrapper for poll, but that would defeat its efficiency arguments.
The semantics of
Also note that
While I am not sure of all the implementation details, from this we can say that it doesn't make sense to make