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


Groups > comp.programming.threads > #2371 > unrolled thread

Scalable MLock version 1.1

Started byaminer <aminer@toto.net>
First post2014-05-22 21:46 -0700
Last post2014-05-22 21:46 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.programming.threads


Contents

  Scalable MLock version 1.1 aminer <aminer@toto.net> - 2014-05-22 21:46 -0700

#2371 — Scalable MLock version 1.1

Fromaminer <aminer@toto.net>
Date2014-05-22 21:46 -0700
SubjectScalable MLock version 1.1
Message-ID<llm9a6$cfu$1@news.albasani.net>
Hello,

Scalable MLock was updated to version 1.1, now it has
become 100% FIFO fair, and of course it's scalable
and starvation-free.


Author: Amine Moulay Ramdane.

Description:

A node based Lock that is scalable, FIFO fair and starvation-free.

- Discovered by Amine Moulay Ramdane

- This lock is scalable

- It has the same space requirement as the scalable MCS lock

- Doesn't require a local "queue node" to be passed in as a parameter 
as is doing the MCS and CLH locks.

- Spins only on local locations on a cache-coherent machine

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


You can download my scalable MLock from:

https://sites.google.com/site/aminer68/scalable-mlock


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....

Required Delphi switches: -$H+ -DDELPHI

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


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


Thank you,
Amine Moulay Ramdane.

[toc] | [standalone]


Back to top | Article view | comp.programming.threads


csiph-web