« Return to Thread: Spinlocks

Re: Spinlocks

by Michael Gogins-2 :: Rate this Message:

Reply to Author | View in Thread

Performance is indeed the motivation for these spinlocks. I am looking to
the near future where 4 or more cores are running Csound instruments on up
to dozens of threads. In that case, spinlocks seem to promise a significant
performance advantage over mutexes, especially because we would not expect
the locks to do much actual spinning. Each lock contention would be in cache
and involve a short loop and some CAS, rather than hopping out to the OS.

Regards,
Mike

----- Original Message -----
From: "Felipe Sateler" <fsateler@...>
To: "Developer discussions" <csound-devel@...>
Sent: Friday, May 01, 2009 12:05 AM
Subject: Re: [Cs-dev] Spinlocks


> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations
> Conference from O'Reilly Media. Velocity features a full day of
> expert-led, hands-on workshops and two days of sessions from industry
> leaders in dedicated Performance & Operations tracks. Use code vel09scf
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf


--------------------------------------------------------------------------------


> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

 « Return to Thread: Spinlocks