Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    +1, it's practically impossible to test all possible scenarios. If you always use locks to synchronize access to shared data it should be OK even if it is not the best solution from performance point of view. Commented Oct 5, 2009 at 14:57
  • Using CHESS will allow you to actually test that your locking is correct - it runs your threading unit tests using every possible code path. Watch the video about CHESS here: channel9.msdn.com/posts/Peli/… Commented Oct 5, 2009 at 15:30