In c# 4.0, Microsoft has introduced a new namespace with name “System.Collections.Concurrent” which provide set of collections having thread safe behavior.
Some of these thread safe collections are as:
Lets take example of example of Queue data structure, Simple queue is explained here
The generic version of queue is explained here.
Before arrival of C# 4.0, thread safety in queue was ensured by using Queue.Synchronized as explained at:
But now we have better implementation of thread safe queue with System.Collections.Concurrent namespace, as explained here: