[Python-Dev] epoll implementation

"Martin v. Löwis" martin at v.loewis.de
Sat May 27 08:56:51 CEST 2006


Alex Martelli wrote:
>> Of course that would mean establishing which *was* the best available
>> which, as we've seen this week, may not be easy.
> 
> I believe it's: kqueue on FreeBSD ...

Such a statement assumes they are semantically equivalent. However, I
believe they aren't. A specific usage pattern can be expressed with
any of them, for such a usage pattern, you can come up with a ranking
even.

For example, to check whether a single specific file descriptor is
ready, I would assume that poll is best (even better than epoll and
kqueue). To check whether file descriptor 0 is ready, I would assume
that select is even better.

Regards,
Martin


More information about the Python-Dev mailing list