mursaleen fayyaz

mursaleen fayyaz

  • NA
  • 84
  • 125.2k

How to use Concurrent Collections Classes ?

Jun 5 2013 12:38 PM
Hi Programmer/Developers/Architect/.NET lovers,


.NET 4 contains the new namespace System.Collections.Concurrent with several new thread-safe collection classes. Thread-safe collections are guarded from multiple threads accessing the collections in conflicting ways.

  • ConcurrentQueue<T>
  • ConcurrentStack<T>
  • ConcurrentBag<T>
  • ConcurrentDictionary<TKey, TValue>
  • ConcurrentXXX
  • BlockingCollection<T>

Comments on Each bullet with perfect example.


Answers (1)