O'Reilly Forums: C# 4.0 Do We Really Need Locks And Barriers - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

C# 4.0 Do We Really Need Locks And Barriers Rate Topic: -----

#1 User is offline   Scheichsbeutel 

  • New Member
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 15-April 11

Posted 31 July 2012 - 12:06 AM

Hello,

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.

Felix
0

#2 User is offline   JoeAlbahari 

  • Super Veteran Member
  • PipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 529
  • Joined: 15-February 08
  • Gender:Male
  • Location:Perth, Australia

Posted 01 August 2012 - 05:25 PM

Are you running the code with optimizations enabled? ("release mode")
0

#3 User is offline   Scheichsbeutel 

  • New Member
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 15-April 11

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.

Felix
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users