Scalable AMLock

A scalable array based Lock version 1.09

Authors: Amine Moulay Ramdane.

Description:

A scalable array based Lock that works accross processes and threads, it's FIFO fair and it reduces efficiently the cache-coherence traffic, and the number of threads can go beyond the size of the array.

Note: You have to use a number of threads not greater than 1X times the number of cores so that my scalable AMLock will be optimal.

You can go to download the zip files by clicking on the following web link:

https://drive.google.com/drive/folders/1UURvG-c-F5FF3L89Wev4b2iC0JpRf8sn?usp=sharing

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

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

Required FPC switches: -O3 -Sd

-Sd for delphi mode....

Required Delphi switches: -$H+ -DDelphi

Required Delphi XE versions switches: -$H+ -DXE

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

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