1
Answer

How to use Concurrent Collections Classes ?

mursaleen fayyaz

mursaleen fayyaz

11y
1.3k
1
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)