From owner-freebsd-hackers Sat Jul 3 11: 4:45 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from obie.softweyr.com (unknown [204.68.178.33]) by hub.freebsd.org (Postfix) with ESMTP id 2AD6C15077 for ; Sat, 3 Jul 1999 11:04:28 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from softweyr.com (homer.softweyr.com [204.68.178.39]) by obie.softweyr.com (8.8.8/8.8.8) with ESMTP id MAA09446; Sat, 3 Jul 1999 12:04:14 -0600 (MDT) (envelope-from wes@softweyr.com) Message-ID: <377E509D.75F79D0E@softweyr.com> Date: Sat, 03 Jul 1999 12:04:13 -0600 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: "Brian F. Feldman" Cc: Jonathan Lemon , wayne@crb-web.com, hackers@FreeBSD.ORG Subject: Re: poll() vs select() References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Brian F. Feldman" wrote: > > On Sat, 3 Jul 1999, Jonathan Lemon wrote: > > > On Jul 07, 1999 at 01:01:07AM -0400, Brian F. Feldman wrote: > > > On Fri, 2 Jul 1999, Jonathan Lemon wrote: > > > > > > As for new code, use whichever you are comfortable with. Personally, I > > > > would recommend poll(), since it provides some added functionality over > > > > select() that makes for easier programming. > > > > > > poll() is a huge pain to use, which is why I recommend select(). > > > > Whichever you're comfortable with. poll() isn't a pain once you know > > how to use it, and it does bring additional benefits. > > I don't see how you can not find poll() a pain when compared to select(). It > requires so much set-up, much like (for instance) aio_write() as opposed to > write(). I suppose if you're masochistic, you won't mind doing that :) He wouldn't be a programmer unless masochistic. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://softweyr.com/ wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message