Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jul 2003 23:52:13 +0300
From:      "Petri Helenius" <pete@he.iki.fi>
To:        <deischen@freebsd.org>, "David Xu" <davidxu@freebsd.org>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: libkse "wieght"
Message-ID:  <002701c353b7$cb29a310$812a40c1@PETEX31>
References:  <Pine.GSO.4.10.10307261025370.1253-100000@pcnet5.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help

>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002701c353b7$cb29a310$812a40c1>