Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming.threads > #2037 > unrolled thread
| Started by | aminer <aminer@toto.net> |
|---|---|
| First post | 2013-12-21 18:45 -0800 |
| Last post | 2013-12-21 18:45 -0800 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.programming.threads
About Locks... aminer <aminer@toto.net> - 2013-12-21 18:45 -0800
| From | aminer <aminer@toto.net> |
|---|---|
| Date | 2013-12-21 18:45 -0800 |
| Subject | About 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,
Back to top | Article view | comp.programming.threads
csiph-web