[M3devel] userthreads vs. pthreads performance?

Jay K jay.krell at cornell.edu
Mon Mar 29 15:10:36 CEST 2010


Original was more general pthread vs. userthread and I thought pthread_getspecific was also indicted.

 - Jay


> From: dragisha at m3w.org
> To: jay.krell at cornell.edu
> Date: Mon, 29 Mar 2010 11:38:18 +0200
> CC: m3devel at elegosoft.com
> Subject: Re: [M3devel] userthreads vs. pthreads performance?
> 
> 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>
> 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20100329/fa2a8fcb/attachment-0002.html>


More information about the M3devel mailing list