From owner-freebsd-threads@FreeBSD.ORG Sat Jul 26 15:51:43 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABDB837B401; Sat, 26 Jul 2003 15:51:43 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD06743FA3; Sat, 26 Jul 2003 15:51:42 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h6QMpfax018349; Sat, 26 Jul 2003 18:51:41 -0400 (EDT) Date: Sat, 26 Jul 2003 18:51:41 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Petri Helenius In-Reply-To: <002701c353b7$cb29a310$812a40c1@PETEX31> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE cc: David Xu cc: freebsd-threads@freebsd.org Subject: Re: libkse "wieght" X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jul 2003 22:51:44 -0000 On Sat, 26 Jul 2003, Petri Helenius wrote: >=20 > >Libkse caches up to 100 threads for you, and throws away any more than > >that to free(). There is still a bit of set up to do with a libkse > >cached thread (makecontext(), add the thread to the run queue, etc), > >but it should be faster than creating a thread from scratch. >=20 > This sounds great, would probably catch most of the cases I=B4m thinking > about without having to reach outside the cache that often. >=20 > On a related note, looking at the code it seems to me that getaddrinfo > holds a mutex while it=B4s waiting for get lookup to complete so if there > is a stalled DNS lookup all other threads wait on the mutex? Is this > observation correct? Probably. That's currently beyond my focus right now ;-) --=20 Dan Eischen