Hello all,
I have finally found a solution that brings FIFO fairness to
my scalable RWLock, i have tested this solution and it is now working
perfectly in practice, this solution uses two SemaMonitors on the
reader side and one SemaMonitor on the writer side.
So now my scalable RWLock, the variant called RWLock2, supports the following requirements:
1- It uses my SemaMonitor on both the reader and writer side
so it uses less CPU ressources.
2- It scales on multicores
3- It is FIFO fair on both the reader and the writer side
and it is starvation free.
You can download all the variants of my scalable RWLock from:
http://pages.videotron.com/aminer/And please take a look at my new algorithm inside RWLock2.pas.
Thank you,
Amine Moulay Ramdane.