Scalable AMLock
A scalable array based Lock version 1.08
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.
Language: FPC Pascal v2.2.0+ / Delphi 7+: http://www.freepascal.org/
Operating Systems: Windows, Mac OSX , Linux...
Required FPC switches: -O3 -Sd -dFPC -dFreePascal
-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