Recent

Author Topic: Distributed Lock version 1.0  (Read 2723 times)

aminer

  • Hero Member
  • *****
  • Posts: 956
Distributed Lock version 1.0
« on: September 28, 2013, 12:39:26 am »

Hello,

Finally i have implemented my Distributed Lock, i think it's
good now cause it reduces the cache-coherence traffic and it is
much fair than the Windows critical section.

Description:

A scalable distributed Lock, it is as fast as the Windows critical section but it is much fair than the Windows critical section and the SpinLock with exponential backoff, and it reduces the cache-coherence traffic.

Please take a look a the test.pas Object Pascal demo inside the zipfile, compile and run it...


You can download my Distributed Lock from:

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


Language: FPC Pascal v2.2.0+ / Delphi 7+: http://www.freepascal.org/

Operating Systems: Windows, Mac OSX , Linux , Unix...


Required FPC switches: -O3 -Sd -dFPC -dFreePascal

-Sd for delphi mode....

{$DEFINE CPU32} and {$DEFINE Windows32} for 32 bit systems

{$DEFINE CPU64} and {$DEFINE Windows64} for 64 bit systems



Thank you,
Amien Moulay Ramdane.



aminer

  • Hero Member
  • *****
  • Posts: 956
Re: Distributed Lock version 1.0
« Reply #1 on: September 28, 2013, 12:44:56 am »

Hello,

I said that my Distributed Lock is much fair than the Windows critical section and much fair than the SpinLock with expoenential backoff,
a proof of that ? just run the test.pas ,test1.pas and test2.pas
inside the zipfile and you will notice it.


Other than that you can use a Waitfree queue and it will be much efficient than that.

You can download my Distributed Lock from:

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

Thank youm
Amine Moulay Ramdane.

 

TinyPortal © 2005-2018