Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jul 2003 18:51:41 -0400 (EDT)
From:      Daniel Eischen <eischen@vigrid.com>
To:        Petri Helenius <pete@he.iki.fi>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: libkse "wieght"
Message-ID:  <Pine.GSO.4.10.10307261848250.17959-100000@pcnet5.pcnet.com>
In-Reply-To: <002701c353b7$cb29a310$812a40c1@PETEX31>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10307261848250.17959-100000>