[M3devel] userthreads vs. pthreads performance?

Dragiša Durić dragisha at m3w.org
Sun Mar 28 21:14:57 CEST 2010


I remember reading (long time ago) about how these (FUTEXes) are
efficient in LINUX... Can I have your test code to try?

On Sun, 2010-03-28 at 12:11 -0700, Mika Nystrom wrote:
> Well I have run programs on PPC_DARWIN and FreeBSD<X> and seen these sorts of things...
> 
> =?UTF-8?Q?Dragi=C5=A1a_Duri=C4=87?= writes:
> >Which platform?
> >
> >On Sun, 2010-03-28 at 11:57 -0700, Mika Nystrom wrote:
> >> Yep, sounds right.  
> >> 
> >> I was profiling some other thread-using code that slowed down
> >> enormously
> >> because of pthreads and it turned out the program was spending ~95%
> >> of its time in accessing the thread locals via one of the pthread_
> >> functions.
> >> (The overhead of entering the kernel.)
> >-- 
> >Dragiša Durić <dragisha at m3w.org>
-- 
Dragiša Durić <dragisha at m3w.org>




More information about the M3devel mailing list