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


Groups > comp.programming > #3808 > unrolled thread

Scalable Distributed Lock version 1.1

Started byaminer <aminer@toto.net>
First post2013-09-30 10:43 -0700
Last post2013-09-30 11:03 -0700
Articles 2 — 1 participant

Back to article view | Back to comp.programming


Contents

  Scalable Distributed Lock version 1.1 aminer <aminer@toto.net> - 2013-09-30 10:43 -0700
    Re: Scalable Distributed Lock version 1.1 aminer <aminer@toto.net> - 2013-09-30 11:03 -0700

#3808 — Scalable Distributed Lock version 1.1

Fromaminer <aminer@toto.net>
Date2013-09-30 10:43 -0700
SubjectScalable Distributed Lock version 1.1
Message-ID<l2c2ms$ocl$1@news.albasani.net>
Hello,


My scalable distributed Lock have been updated to version 1.1,
now it is fair when there is contention, so i think it will avoid
starvation and it reduces the cache-coherence traffic.


Authors: Amine Moulay Ramdane.


Description:

A scalable distributed Lock, it is as fast as the windows critical 
section and it is fair when there is contention , and it reduces the 
cache-coherence traffic.

I have not used a Waitfree queue to implement my Scalable Distributed 
Lock,  but you can use a Waitfree queue so that my Scalable Distributed 
Lock will be more efficient.

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


You can download my Scalable and 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,
Amine Moulay Ramdane.

[toc] | [next] | [standalone]


#3809

Fromaminer <aminer@toto.net>
Date2013-09-30 11:03 -0700
Message-ID<l2c3s3$qv9$1@news.albasani.net>
In reply to#3808


Hello,

If you have noticed my Scalable and distributed Lock uses now
a Ticket mechanism, but my Scalable distributed Lock is more
efficient than the Ticket Spinlock cause it's distributed and
hence the threads spins on local variables so it reduced the cache
misses and the cache-cohence traffic, so my scalable distributed Lock
is more efficient than the Ticket Spinlock.



Thannk you,
Amine Moulay Ramdane

On 9/30/2013 10:43 AM, aminer wrote:
>
> Hello,
>
>
> My scalable distributed Lock have been updated to version 1.1,
> now it is fair when there is contention, so i think it will avoid
> starvation and it reduces the cache-coherence traffic.
>
>
> Authors: Amine Moulay Ramdane.
>
>
> Description:
>
> A scalable distributed Lock, it is as fast as the windows critical
> section and it is fair when there is contention , and it reduces the
> cache-coherence traffic.
>
> I have not used a Waitfree queue to implement my Scalable Distributed
> Lock,  but you can use a Waitfree queue so that my Scalable Distributed
> Lock will be more efficient.
>
> Please take a look a the test.pas Object Pascal demo inside the zipfile,
> compile and run it...
>
>
> You can download my Scalable and 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,
> Amine Moulay Ramdane.
>
>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.programming


csiph-web