What is a real world use for ConcurrentBag<T>?

Viewed 12815

A ConcurrentBag will allow multiple threads to add and remove items from the bag. It is possible that a thread will add an item to the bag and then end up taking that same item right back out. It says that the ConcurrentBag is unordered, but how unordered is it? On a single thread, the bag acts like a Stack. Does unordered mean "not like a linked list"?

What is a real world use for ConcurrentBag?

4 Answers
Related