C# 4.0 Concurrent Collections

The System.Collections.Concurrent namespace contains the following concurrent collection types: BlockingCollection, ConcurrentBag, ConcurrentDictionary, ConcurrentQueue, and ConcurrentStack These implement the producer-consumer paradigm with the exception of the ConcurrentDictionary class. With producer-consumer, usually one thread adds elements, and a different thread removes elements.

By Peter Bromberg   Popularity  (6576 Views)