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


Groups > comp.programming > #3759

About my RWLock ...

From aminer <aminer@toto.net>
Newsgroups comp.programming.threads, comp.programming
Subject About my RWLock ...
Date 2013-09-22 23:13 -0700
Organization albasani.net
Message-ID <l1obk6$kls$1@news.albasani.net> (permalink)

Cross-posted to 2 groups.

Show all headers | View raw


Hello,


If you take a look at the SpinLock that i am using
inside my SemaMonitor, it uses a backoff mechanism to be more efficient 
but there is still a weakness with that SpinLock cause
all the threads inside this SpinLock spin on the same shared location 
causing
cache-coherence traffic on every successful lock access so it will slow 
globally the threads of your computer, so the idea is to use like an MCS 
queue Lock that uses
an exponential backoff and that doesn't spin on a shared variable but
local variables.

I am not the designer of this SpinLock, this SpinLock was designed by 
other devellopers and it is not so efficient as i have just explained, 
here is the
devellopers of this SpinLock (that i am using) called Istvan Agoston and 
Primoz Gabrijelcic :

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


So i will try to design something like an MCS queue lock that
is very efficient in the near future nad that i will use inside
my SemaCondvar and SemaMonitor.


Thank you,
Amine Moulay Ramdane.


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


Thread

About my RWLock ... aminer <aminer@toto.net> - 2013-09-22 23:13 -0700
  Re: About my RWLock ... aminer <aminer@toto.net> - 2013-09-22 23:37 -0700
    Re: About my RWLock ... aminer <aminer@toto.net> - 2013-09-22 23:40 -0700
  Re: About my RWLock ... aminer <aminer@toto.net> - 2013-09-22 23:47 -0700

csiph-web