Re: Slow pthread_create() under high load

From: Andi Kleen (ak@suse.de)
Date: Sun Mar 26 2000 - 11:41:54 EST


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

> > Alan, if POSIX threads are a "braindamaged pile of crap" (not arguing
> > but I do use threads quite heavily) what would you rather us use as
> > threads in Linux? Or are you not happy with any current implementation?
>
> If you want performance use clone() directly. If you want portability
> you have to pay for the glue. Ulrich is right that at the moment said glue
> involves jumping through a few too many hoops

The problem of using clone() directly is that you'll also have to
implement your own user space locks. Which can be quite tricky to get
right.

-Andi

-
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:17 EST