Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #2037

About Locks...

From aminer <aminer@toto.net>
Newsgroups comp.programming.threads, comp.programming
Subject About Locks...
Date 2013-12-21 18:45 -0800
Organization albasani.net
Message-ID <l95972$cun$1@news.albasani.net> (permalink)

Cross-posted to 2 groups.

Show all headers | View raw


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,

Back to comp.programming.threads | Previous | Next | Find similar | Unroll thread


Thread

About Locks... aminer <aminer@toto.net> - 2013-12-21 18:45 -0800

csiph-web