【发布时间】:2011-01-11 07:20:31
【问题描述】:
SynchronizedCollection<T> 和 System.Collections.Concurrent 命名空间中的并发集合有何不同,除了并发集合是命名空间和 SynchronizedCollection<T> 是类之外?
SynchronizedCollection<T> 和并发集合中的所有类都提供线程安全的集合。我如何决定何时使用其中一种,为什么?
【问题讨论】:
标签: c# collections .net-4.0 thread-safety concurrent-collections