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...
Threading - I write about it a lot, even though i would consider myself somewhat of a rookie when it comes to threading complexities. One of the challenges we often find when trying to incorporate threading into applications is managing work units, thread pools, and queues. What I've ended up doing...
For those of you that have read my post about the Thread Safe Dictionary, I have a few updates. In recent months, I have done a ridiculous amount of multi-threaded work. This has forced me to expand my threading libraries. One of the primary objects that required changes\fixes was my dictionary. The...
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...