Re: Slow pthread_create() under high load

From: Ulrich Drepper (drepper@redhat.com)
Date: Sun Mar 26 2000 - 21:22:42 EST


Alan Cox <alan@lxorguk.ukuu.org.uk> writes:

> You mean create a thread which starts by doing a pause syscall in a loop
> until you poke it ? Why does that need kernel help

Because you would need extra synchronization. How else can the
creater be sure the SIGCONT arrives when the new thread already sent
the SIGSTOP? This would make the startup process yet slower and we
were just talking about the already high overhead. This is a two-line
change, nothing which bloats up the kernel or makes it slow.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:18 EST