Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming.threads > #1069
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | "aminer" <aminer@videotron.ca> |
| Newsgroups | comp.programming.threads, comp.programming |
| Subject | Re: Distributed Reader-Writer Mutex 1.0 |
| Date | Thu, 13 Sep 2012 15:31:51 -0500 |
| Organization | A noiseless patient Spider |
| Lines | 79 |
| Message-ID | <k2tcbe$lmv$1@dont-email.me> (permalink) |
| References | <k2q0ij$rrt$1@dont-email.me> |
| Injection-Date | Thu, 13 Sep 2012 19:31:58 +0000 (UTC) |
| Injection-Info | mx04.eternal-september.org; posting-host="c43ca82f9e8d62a602307fe9d2e9b807"; logging-data="22239"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Rh14EEdrJhOmCZETD3H0I" |
| X-MimeOLE | Produced By Microsoft MimeOLE V6.00.2900.5512 |
| X-RFC2646 | Format=Flowed; Response |
| X-Newsreader | Microsoft Outlook Express 6.00.2900.5512 |
| Cancel-Lock | sha1:1Xgd02GF6Cgn5vqPzgj0dEJk+2Y= |
| X-Priority | 3 |
| X-MSMail-Priority | Normal |
| Xref | csiph.com comp.programming.threads:1069 comp.programming:2211 |
Cross-posted to 2 groups.
Show key headers only | View raw
Hello,
In the previous versions i have aligned the array elements on cache line
bounderies like have done Dmitry Vyukov, and it didn't work correctly
when i have tested the second version, so i have thought about that and
after that i have decided to not align the array elements on cache line
bounderied but just add a cache line padding to TOmniMREW for example
and this time it has worked perfectly and now the second version is scaling
perfectly..
So i have updated Distributed Reader-Writer Mutex to versoin 1.03 ,
you can download it from:
http://pages.videotron.com/aminer/
Thank you,
Amine Moulay Ramdane.
"aminer" <aminer@videotron.ca> wrote in message
news:k2q0ij$rrt$1@dont-email.me...
> Hello,
>
>
> Distributed Reader-Writer Mutex 1.0
>
>
> Description:
>
> Distributed Reader-Writer Mutex, ported by Amine Moulay Ramdane
> from the Dmitry Vyukov C++ Distributed Reader-Writer Mutex to
> Object Pascal, I have included the following Reader-Writer Mutexes
> inside this Distributed Reader-Writer mutex: TOmniMREW a light weight
> MREW that is very fast and TMultiReadExclusiveWrite from JCL and
> nowboth of them can scale better, and i have modified a little bit
> the 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.
>
>
Back to comp.programming.threads | Previous | Next — Previous in thread | Next in thread | Find similar
Distributed Reader-Writer Mutex 1.0 "aminer" <aminer@videotron.ca> - 2012-09-12 08:52 -0500 Re: Distributed Reader-Writer Mutex 1.0 "aminer" <aminer@videotron.ca> - 2012-09-12 09:27 -0500 Re: Distributed Reader-Writer Mutex 1.0 "aminer" <aminer@videotron.ca> - 2012-09-12 09:34 -0500 Re: Distributed Reader-Writer Mutex 1.0 "aminer" <aminer@videotron.ca> - 2012-09-12 09:43 -0500 Re: Distributed Reader-Writer Mutex 1.0 "aminer" <aminer@videotron.ca> - 2012-09-13 12:22 -0500 Re: Distributed Reader-Writer Mutex 1.0 "aminer" <aminer@videotron.ca> - 2012-09-13 14:46 -0500 Re: Distributed Reader-Writer Mutex 1.0 "aminer" <aminer@videotron.ca> - 2012-09-13 15:22 -0500 Re: Distributed Reader-Writer Mutex 1.0 "aminer" <aminer@videotron.ca> - 2012-09-13 15:31 -0500 Re: Distributed Reader-Writer Mutex 1.0 "aminer" <aminer@videotron.ca> - 2012-09-13 15:51 -0500
csiph-web