Date: Sat, 18 Nov 2000 09:22:39 -0800 From: Alfred Perlstein <bright@wintelcom.net> To: Maxime Henrion <mux@qualys.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: kqueue()/kevent(), select() and poll() Message-ID: <20001118092238.B18037@fw.wintelcom.net> In-Reply-To: <20001118150445.A260@nebula.cybercable.fr>; from mux@qualys.com on Sat, Nov 18, 2000 at 03:04:45PM %2B0100 References: <20001118150445.A260@nebula.cybercable.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
* Maxime Henrion <mux@qualys.com> [001118 06:03] wrote: > Hi, > > I was wondering if it was reasonnable to implement the select() and poll() > system calls as kqueue()/kevent() wrappers. This would make any application > using these system calls benefit from the performance improvements of the new > kernel thread. > > Do you think it's possible and that it won't cause some portability problems ? It would just cause more overhead. To implement select()/poll() using kevent would necessitate building up an eventlist that was comprised of EVFILT_ONESHOT events, then after return or timeout clearing the events that hadn't fired. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001118092238.B18037>