About my Distributed Sequential lock

104 views
Skip to first unread message

Amine Moulay Ramdane

unread,
Jan 30, 2015, 4:38:50 PM1/30/15
to lock...@googlegroups.com
Hello,


I want to clear something about  my Distributed sequential lock algorithm, you can download it and read about it here:

https://sites.google.com/site/aminer68/scalable-distributed-sequential-lock


If you read carefully the source code you will noticed that i am using this: "myid3:=FCount6^.fcount6;" inside the RLock()
method in the reader side, so when  my algorithms switches from a Seqlock mode to a Distributed lock mode, the
"myid3:=FCount6^.fcount6;" will be "serialized" when the writer side increment FCount6^.fcount6, so in the writer side i am calling the distributed reader-writer lock when the algorithm swithes to a Distributed mode, so if you have noticed since the "myid3:=FCount6^.fcount6;" is serialized in the reader side when "FCount6^.fcount6" is incremented in the writer side,
so this will look like a probalistic mechanism cause the reader side is serializing the the transfer of FCount6^.fcount6
on the bus, and the writer side is serializing the transfer of a variable in the bus also when it is calling the WLock() of the
distributed lock, so this is a kind of a probalistic mechanism cause this can generate contention and the reader side can call
RLock() on a distributed lock's  reader-writer mutex that is entered before the reader by the writer, but even though it is a probalistic mechanism, this probabilistic mechanism  will give a good result and it eliminates the "livelock" situation of the Seqlock when there is more writers.




Thank you for your time.


Amine Moulay Ramdane. 

Amine Moulay Ramdane

unread,
Feb 2, 2015, 11:27:54 AM2/2/15
to lock...@googlegroups.com


On Friday, January 30, 2015 at 1:38:50 PM UTC-8, Amine Moulay Ramdane wrote:
Hello,


I want to clear something about  my Distributed sequential lock algorithm, you can download it and read about it here:

https://sites.google.com/site/aminer68/scalable-distributed-sequential-lock


If you read carefully the source code you will noticed that i am using this: "myid3:=FCount6^.fcount6;" inside the RLock()
method in the reader side, so when  my algorithms switches from a Seqlock mode to a Distributed lock mode, the
"myid3:=FCount6^.fcount6;" will be "serialized" when the writer side increment FCount6^.fcount6, so in the writer side i am calling the distributed reader-writer lock when the algorithm swithes to a Distributed mode, so if you have noticed since the "myid3:=FCount6^.fcount6;" is serialized in the reader side when "FCount6^.fcount6" is incremented in the writer side,
so this will look like a probalistic mechanism cause the reader side is serializing the the transfer of FCount6^.fcount6


I mean probabilistic , not probalistic.
 
on the bus, and the writer side is serializing the transfer of a variable in the bus also when it is calling the WLock() of the
distributed lock, so this is a kind of a probalistic mechanism cause this can generate contention and the reader side

I mean probabilistic , not probalistic.

Dmitry Vyukov

unread,
Feb 5, 2015, 3:38:33 AM2/5/15
to lock...@googlegroups.com
I don't see any explanation regarding difference between DSLOCK.ZIP
and DSLOCK_XE.ZIP.
I can't download both files, the server says "The requested URL was
not found on this server".
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Scalable Synchronization Algorithms" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to lock-free+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/lock-free/34bbb36e-c33d-4f23-a228-c420b0daa850%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
Dmitry Vyukov

All about lockfree/waitfree algorithms, multicore, scalability,
parallel computing and related topics:
http://www.1024cores.net

Amine Moulay Ramdane

unread,
Feb 5, 2015, 12:36:15 PM2/5/15
to lock...@googlegroups.com

Dmitry Vyukov wrote:
>I don't see any explanation regarding difference between DSLOCK.ZIP 
>and DSLOCK_XE.ZIP. 
>I can't download both files, the server says "The requested URL was 
>not found on this server". 


To download the zip file , please click on the small arrow that you will find just on the right of the name of DSLock.zip.




Thank you,
Amine Moulay Ramdane.





On Friday, January 30, 2015 at 1:38:50 PM UTC-8, Amine Moulay Ramdane wrote:

Dmitry Vyukov

unread,
Feb 5, 2015, 11:25:40 PM2/5/15
to lock...@googlegroups.com
I've looked at DRWLOCK.PAS and it looks exactly the same as;
http://www.1024cores.net/home/lock-free-algorithms/reader-writer-problem/distributed-reader-writer-mutex
What is novel there?
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Scalable Synchronization Algorithms" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to lock-free+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/lock-free/0238f2ea-068c-4c33-b2ad-a8b9d95ba36c%40googlegroups.com.

Amine Moulay Ramdane

unread,
Feb 6, 2015, 9:20:22 AM2/6/15
to lock...@googlegroups.com

Hello,


The algorithm is inside DSLock.pas..


Thank you,
Amine Moulay Ramdane.





On Friday, January 30, 2015 at 1:38:50 PM UTC-8, Amine Moulay Ramdane wrote:
Reply all
Reply to author
Forward
0 new messages