From owner-freebsd-hackers Tue Jul 6 10:32:26 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mail-out2.apple.com (mail-out2.apple.com [17.254.0.51]) by hub.freebsd.org (Postfix) with ESMTP id 3FCF514EE9 for ; Tue, 6 Jul 1999 10:32:24 -0700 (PDT) (envelope-from justin@walker3.apple.com) Received: from mailgate1.apple.com (A17-128-100-225.apple.com [17.128.100.225]) by mail-out2.apple.com (8.8.5/8.8.5) with ESMTP id KAA27110 for ; Tue, 6 Jul 1999 10:32:10 -0700 Received: from scv2.apple.com (scv2.apple.com) by mailgate1.apple.com (mailgate1.apple.com- SMTPRS 2.0.15) with ESMTP id ; Tue, 06 Jul 1999 10:13:41 -0700 Received: from walker3.apple.com (walker3.apple.com [17.219.24.201]) by scv2.apple.com (8.9.3/8.9.3) with ESMTP id KAA26904; Tue, 6 Jul 1999 10:13:40 -0700 Received: (from justin@localhost) by walker3.apple.com (8.9.1/8.9.1) id KAA00667; Tue, 6 Jul 1999 10:13:45 -0700 (PDT) Message-Id: <199907061713.KAA00667@walker3.apple.com> To: John Polstra Subject: Re: poll() vs select() Cc: archie@whistle.com, hackers@freebsd.org In-Reply-To: <199907050103.SAA51932@bubba.whistle.com> Date: Tue, 6 Jul 1999 10:13:42 -0700 From: "Justin C. Walker" Reply-To: justin@apple.com X-Mailer: by Apple MailViewer (2.105.dev) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > From: John Polstra > Date: 1999-07-06 09:36:51 -0700 > To: archie@whistle.com > Subject: Re: poll() vs select() > Cc: hackers@FreeBSD.ORG > In-reply-to: <199907050103.SAA51932@bubba.whistle.com> > Delivered-to: freebsd-hackers@freebsd.org > X-Loop: FreeBSD.ORG > Organization: Polstra & Co., Seattle, WA > > In article <199907050103.SAA51932@bubba.whistle.com>, > Archie Cobbs wrote: > > > > A new, faster event notification system would be great. But don't forget > > to include *all* events, not just file descriptor readability/writability. > > Yes! Yes! Yes! (I agree.) To add to the confusion, we've implemented something very similar for Mac OS X Server, designed to be a replacement for select(), and for use in a similar way to select's use in existing code. You can see it in the Darwin code. Check out "sys/ev.h" for a typically terse description of the API. In the released Darwin source, the code deals only with sockets. The Darwin release that deals with Mac OS X (possibly by fall) should have a more involved design that deals with a number of different kinds of events, including Mach messages (not a big deal for this group, of course). See www.publicsource.apple.com and follow the links to Darwin OS. Regards, Justin -- Justin C. Walker, Curmudgeon-At-Large * Institute for General Semantics | Manager, CoreOS Networking | Men are from Earth. Apple Computer, Inc. | Women are from Earth. 2 Infinite Loop | Deal with it. Cupertino, CA 95014 | *-------------------------------------*-------------------------------* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message