From owner-freebsd-hackers Tue Aug 14 13:59:56 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from swan.mail.pas.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id CF6A537B403; Tue, 14 Aug 2001 13:59:51 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (dialup-209.245.142.60.Dial1.SanJose1.Level3.net [209.245.142.60]) by swan.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id NAA28218; Tue, 14 Aug 2001 13:59:48 -0700 (PDT) Message-ID: <3B79916D.FE1342E2@mindspring.com> Date: Tue, 14 Aug 2001 14:00:29 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "Daniel M. Eischen" Cc: Jonathan Chen , hackers@FreeBSD.ORG Subject: Re: pthreads and poll() References: <20010813120455.A63309@enterprise.spock.org> <3B780BFC.F2BA0A9B@vigrid.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Daniel M. Eischen" wrote: > We don't provide locking for fd's any longer (I thought this was only in > -current, but your results seem to indicate otherwise). If we did, only > one thread would wake up. The mistake in your sample seems to be that > you're having all threads block on the same fd. Why? Probably he has a bunch of daemons waiting around for work to do (e.g. HTTP daemons all listening for connections to accept on the same fd). Lot's of applications could use this model to get a performance boost. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message