I find myself very intrigued by the existence of a ConcurrentBag
Bags are useful for storing objects wh
I believe the concept of a 'Bag' is synonymous with 'Multiset'.
There are a number of "Bag"/"Multiset" implementations (these happen to be java) that are open source if you are interested in how they are implemented.
These implementations show that a 'Bag' can be implemented in any number of ways depending on your needs. There are examples of TreeMultiset, HashMultiset, LinkedHashMultiset, ConcurrentHashMultiset.
Google Collections
Google has a number of "MultiSet" implementations, one being a ConcurrentHashMultiset.
Apache Commons
Apache has a number of "Bag" implementations.