This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Slow pthread_create() under high load


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]