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.