Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

A memory barrier is needed

4 views
Skip to first unread message

Ramine

unread,
May 11, 2016, 8:39:38 AM5/11/16
to
Hello...

I have just looked at my algorithm of my scalable Asymmetric Distributed
Reader-Writer mutex, and i think it needs a memory barrier on the
reader-side, because on x86 loads of the inside reader section can be
reordered with the following store:

myid1:=0;
FCount1^[myid1].fcount1:=FCount1^[myid1].fcount1+1;

So now i think you can be more confident..

You can download my new and updated C++ synchronization objects library
from:

https://sites.google.com/site/aminer68/c-synchronization-objects-library


and you can download my updated scalable DRWLock from:

https://sites.google.com/site/aminer68/scalable-distributed-reader-writer-mutex



Thank you,
Amine Moulay Ramdane.
0 new messages