Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

About Locks...

14 views
Skip to first unread message

aminer

unread,
Dec 21, 2013, 9:45:46 PM12/21/13
to

Hello,

I have tested my Threadpool engine with priorities and i have
noticed that my application hangs from time to time, and i have
debuged my code all this afternoon, and i have found that this
was a problem with the operating system , i am using Windows 2008,
and i have found the follwing solution: to avoid this problem you must
use a sleep(0) at the end of the Leave() method inside my Scalable
Anderson Lock, and this has solved the problem but it has reduced
somewhat the throughput, you have to do the same with my Ticket Spinlock
with an exponential backoff to avoid this problem, but now it is rock
solid and stable, i have updated all my other projects with this update
, please download them again if you need them from:


http://pages.videotron.com/aminer/


Thank you,
Amine Moulay Ramdane,

0 new messages