Jump to content
C# 4.0 Do We Really Need Locks And Barriers
2 replies to this topic
Posted 31 July 2012 - 12:06 AM
I subject to the code in the sidebar 'Do We Really Need Locks and Barriers?' on page 828 (Chap.21 Threading) of 'C# 4.0 in a Nutshell'. It is said that the programm never terminates. With me it does terminate.
Posted 01 August 2012 - 05:25 PM
Are you running the code with optimizations enabled? ("release mode")
Posted 21 January 2013 - 04:14 AM
Today I've seen my question, which I had forgotten at all (sorry)!
Now I can say that your suggestions succeeded: The program doesn't terminate.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users