Threading Subtleties
Scott Allen talks about atomic operations. You forget that operators equate to a method call. Its exactly these kind of coding assumptions that get you in trouble (Who is always saying "Know your CLR?"). When stuff like this happens in my favorite type of threaded application, ASP.NET apps, people are always like "I'm not using threading".
Thanks Scott, I wouldn't have suspected an increment operator if I was debugging a threading related issue.
Comment Notification
If you would like to receive an email when updates are made to this post, please register here
Subscribe to this post's comments using
Comments
What do you think?