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

Re: select()



On Tue, Jul 25, 2000 at 12:49:18PM +0530, Kedar Patankar wrote:
> What do you think can be the other solution? Accept an "array of integers,
> with each integer representing an fd to be watched"?? That would require
> moving *enormous* amounts of data across the kernel/user space for the
> fd_set. Right now, in each of the fd_set, each bit represents whether the
> corrosponding fd should be watched for the necessary condition.

See the discussion at:

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=938990+0+archive/1999/freebsd-hackers/19990704.freebsd-hackers

select: widely used
poll: allegedly faster and cleaner

Yahoo/Filo suggestion, implemented by Jonathan Lemon is even better:

http://www.flugsvamp.com/~jlemon/fbsd/

	-Arun