[M3devel] userthreads vs. pthreads performance?

Tony Hosking hosking at cs.purdue.edu
Sun Mar 28 21:08:12 CEST 2010


Yep.  Call.  Atomic ops.  All expensive.


Antony Hosking | Associate Professor | Computer Science | Purdue University
305 N. University Street | West Lafayette | IN 47907 | USA
Office +1 765 494 6001 | Mobile +1 765 427 5484




On 28 Mar 2010, at 14:32, Dragiša Durić wrote:

> Fast glance shows there is no overhead in code? Just passthrough of
> MUTEX field to pthread_mutex_lock()? And inefficiency comes from there?
> 
> On Sun, 2010-03-28 at 12:55 -0400, Tony Hosking wrote:
>> Yes, we need to implement thin locks and biased locks.  These have
>> minimal overhead for locks held mostly by just one thread.
> -- 
> Dragiša Durić <dragisha at m3w.org>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20100328/db577b41/attachment-0002.html>


More information about the M3devel mailing list