[M3devel] userthreads vs. pthreads performance?

Dragiša Durić dragisha at m3w.org
Mon Mar 29 11:38:18 CEST 2010


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