[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: select() n poll()



On Fri, Jul 28, 2000 at 01:01:11PM +0530, Sunil Soman wrote:
> Im trying to write a lil chat client/server. Im using select in the client 
> for polling stdin and a socket. I tried using poll too:
> with select - %CPU=0.01 with poll:%CPU=12
> Isnt poll supposed to work the same as select() ??

Can you post your benchmark ? Jonathan Lemon (The FreeBSD guy who implemented
kqueue) claims that he benchmarked poll to be faster than select. The
claim was that select exists because there is a lot of code out there
which uses it.

	-Arun