[M3devel] userthreads vs. pthreads performance?

Tony Hosking hosking at cs.purdue.edu
Mon Mar 29 16:43:21 CEST 2010


PS.  Our Java work shows that futexes don't really win against the bias/thin/fat lock scheme I sketched previously.

On 29 Mar 2010, at 05:38, Dragiša Durić wrote:

> I can be wrong, but what FUTEX operations on Linux can have with
> pthread_getspecific?
> 
> Operations are made on FUTEX, we know which and where, no need to ask
> for pthread_getspecific.
> 
> Are we still talking about poor lock_mutex performance?
> 
> 
> On Mon, 2010-03-29 at 08:24 +0000, Jay K wrote:
>> Once you do throw in -fPIC and -shared, I have found __thread to be
>> significantly slower on Solaris/sparc and Linux/powerpc32, slower or
>> a wash on Linux/amd64, and twice as fast as pthread_getspecific on
>> Linux/x86.
>> I doesn't appear supported at all on Darwin, though
>> pthread_getspecific are very fast there (albeit not inlined).
>> I didn't test *BSD.
> -- 
> Dragiša Durić <dragisha at m3w.org>




More information about the M3devel mailing list