What is the standard nowadays when one needs a thread safe collection (e.g. Set).
Do I synchronize it myself, or is there an inherently thread safe collection?
What is the standard nowadays when one needs a thread safe collection (e.g. Set).
Share
The .NET 4.0 Framework introduces several thread-safe collections in the System.Collections.Concurrent Namespace:
Other collections in the .NET Framework are not thread-safe by default and need to be locked for each operation: