On the serious side, 'poll()' may be easier to use from an API perspective while 'select' makes more sense in the kernel internals. If I weren't so lazy I'd be tempted to look at the implementation of poll() in Linux to see how it ties in to 'select'. Then again, Theo can be talking explicitly about OpenBSD, and I haven't got a clue how these things are implemented on that system.
I am not super familiar with either poll, select or epoll since I don't need them for the type of programming I do. I hear that epoll is (or at least once was) the way to go on Linux, at least if you're polling a large number of FDs. Here's an LWN article from awhile back.
:-)
To recap, someone was polling everyone to help him select between poll and select...
--
Program Intellivision and play Space Patrol!
ha ha ...
That's a good one - wish I'd thought of it.
On the serious side, 'poll()' may be easier to use from an API perspective while 'select' makes more sense in the kernel internals. If I weren't so lazy I'd be tempted to look at the implementation of poll() in Linux to see how it ties in to 'select'. Then again, Theo can be talking explicitly about OpenBSD, and I haven't got a clue how these things are implemented on that system.
poll vs. select vs. epoll on Linux
I am not super familiar with either poll, select or epoll since I don't need them for the type of programming I do. I hear that epoll is (or at least once was) the way to go on Linux, at least if you're polling a large number of FDs. Here's an LWN article from awhile back.
--
Program Intellivision and play Space Patrol!