Jump to content


Photo
- - - - -

C# 4.0 Do We Really Need Locks And Barriers


  • Please log in to reply
2 replies to this topic

#1 Scheichsbeutel

Scheichsbeutel

    New Member

  • Members
  • Pip
  • 6 posts

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

#2 JoeAlbahari

JoeAlbahari

    Super Veteran Member

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 529 posts
  • Gender:Male
  • Location:Perth, Australia

Posted 01 August 2012 - 05:25 PM

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

#3 Scheichsbeutel

Scheichsbeutel

    New Member

  • Members
  • Pip
  • 6 posts

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 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users