In the java world there is a set of classes optimized for concurrent tasks. I assume there is something similar in .Net, but after a quick search in MSDN I couldn’t find anything. I was looking for a queue with fairness policy to be used in consumer/producer situations.
Thanks.
The Parallels Library for .NET contains some thread-safe collections.
One of them is a
ConcurrentQueue<T>http://blogs.msdn.com/pfxteam/archive/2008/08/12/8852005.aspx