Category Archives: Performance

Dictionaries and Threads

    Back on March 27th, I posted the entry "Thread synchronization with Collections".  That information came from a .Net Threading class I had taken that was taught by a very prominent .Net teacher (who’s initials are JR).   The topic came … Continue reading

Advertisement

Posted in Performance | Leave a comment

RE: The shocking truth about the C# lock statement

OK, so my example was a bit contrived.  In most cases what we do in our critical sections would be more than just adding to a List<>.  And in those cases, if an exception is thrown, we would hold the … Continue reading

Posted in Performance | Leave a comment

The shocking truth about the C# lock statement!

In delving deep into C#, the CLR, IL and what really happens under the hood, I’ve discovered a shocking truth about the commonly used lock statement.  Everyone knows that when it’s compiled the lock statement actually uses a light weight … Continue reading

Posted in Performance | Leave a comment