Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #1727

About the SpinLock...

From aminer <aminer@toto.net>
Newsgroups comp.programming.threads, comp.programming
Subject About the SpinLock...
Date 2013-09-23 00:36 -0700
Organization albasani.net
Message-ID <l1ogg1$hd8$1@news.albasani.net> (permalink)

Cross-posted to 2 groups.

Show all headers | View raw



Hello,

About the following SpinLock hat i am using inside my SemaMonitor and 
SemaCondvar:

 
http://code.google.com/p/gpdelphiunits/source/browse/trunk/src/SpinLock.pas?r=37 



I think it's not so bad and it can give a decent performance even under 
high contention cause it uses a backoff mechanism, and even though it spins
on shared variables and not on local variables causing more 
cache-coherence traffic, i don't think it will slow substantially and 
globally the threads of your computer, hence
i think this TTAS spinlock  with an exponential that i am using  have a 
decent performance inside my SemaCondvar and SemaMonitor even under high 
contention, so no need for an MCS queue Lock.


So enjoy my SemaCondvar and my SemaMonitor and my scalable RWLock cause 
they are fast.

You can download them from:

http://pages.videotron.com/aminer/


Thank you,
Amine Moulay Ramdane.













Back to comp.programming.threads | Previous | Next | Find similar | Unroll thread


Thread

About the SpinLock... aminer <aminer@toto.net> - 2013-09-23 00:36 -0700

csiph-web