login
Header Space

 
 

Quote: A Better Select

April 30, 2008 - 6:13pm
Submitted by Jeremy on April 30, 2008 - 6:13pm.

"Quite honestly poll() is a better select(), even if it came out of AT&T."

— Theo de Raadt, in an April 19th, 2008 message on the OpenBSD -misc mailing list.

:-)

April 30, 2008 - 9:05pm

To recap, someone was polling everyone to help him select between poll and select...

--
Program Intellivision and play Space Patrol!

ha ha ...

May 1, 2008 - 6:01am
Anonymouse (not verified)

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

May 1, 2008 - 10:18am

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!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
speck-geostationary