As always, my life revolves around threading. So I have a few classes that I use frequently for these purposes. Now, fortunately, .NET 4.0 will include much of this functionality in PFX, but for now, we have this. ThreadSafeLibrary AutoProcessingQueue : This is a queue that as you add things to it, will...
I recently watched this video on the PowerThreading library: http://blogs.msdn.com/charlie/archive/2008/12/03/jeff-richter-video-on-asynchronous-programming-and-his-power-threading-library.aspx This is very interesting as Jeff Richter utilizes a strange behavior in the way the C# compiler works with...
Since MS has decided to not include a thread-safe dictionary in the .NET framework, many of us have been forced to implement our own. What MS has done now with .NET 3.5 is given us a newer locking mechanism which makes this task easier. Previously, we had 2 lock mechanisms, neither of which worked very...