libkse "wieght"

Daniel Eischen eischen at vigrid.com
Sat Jul 26 15:51:44 PDT 2003


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



More information about the freebsd-threads mailing list