Hello,
Distributed Reader-Writer Mutex 1.0
Description:
Distributed Reader-Writer Mutex, ported by Amine Moulay Ramdane from the C++ Dmitry Vyukov Distributed Reader-Writer Mutex to Object Pascal, I have included in the following
Reader-Writer Mutexex in this distributed Reader-Writer mutex: TOmniMREW a light weight MREW that is very fast and in TMultiReadExclusiveWrite from JCL and now
both of them can scale better, and i have modified a little bit
Dmitry Vyukov Distributed Reader-Writer Mutex, i have not used
getcurrectprocessor() but i have used GetCurrectThreadID() like
this: nbr := getcurrentthreadid mod proc_count;
i have provided you with the source code, please take a look at the source code to understand better.
Language: FPC Pascal v2.2.0+ / Delphi 7+:
http://www.freepascal.org/Operating Systems: Win and Linux (x86).
Required FPC switches: -O3 -Sd -dFPC -dWin32 -dFreePascal
-Sd for delphi mode....
Required Delphi switches: -DMSWINDOWS -$H+
For Delphi use -DDelphi
And inside defines.inc you can use the following defines:
{$DEFINE CPU32} for 32 bits systems
{$DEFINE CPU64} for 64 bits systems
{$DEFINE TOmniMREW} to use Omnithread MREW
{$DEFINE TMultiReadExclusiveWrite} to use the jcl TMultiReadExclusiveWrite
You can download Distributed Reader-Writer Mutex 1.0 from:
http://pages.videotron.com/aminer/Thank you,
Amine Moulay Ramdane.