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


Groups > comp.programming.threads > #2037 > unrolled thread

About Locks...

Started byaminer <aminer@toto.net>
First post2013-12-21 18:45 -0800
Last post2013-12-21 18:45 -0800
Articles 1 — 1 participant

Back to article view | Back to comp.programming.threads


Contents

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

#2037 — About Locks...

Fromaminer <aminer@toto.net>
Date2013-12-21 18:45 -0800
SubjectAbout Locks...
Message-ID<l95972$cun$1@news.albasani.net>
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,

[toc] | [standalone]


Back to top | Article view | comp.programming.threads


csiph-web