libkse "wieght"

Petri Helenius pete at he.iki.fi
Sat Jul 26 13:52:18 PDT 2003


>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.

This sounds great, would probably catch most of the cases I´m thinking
about without having to reach outside the cache that often.

On a related note, looking at the code it seems to me that getaddrinfo
holds a mutex while it´s 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?

Pete



More information about the freebsd-threads mailing list