Why doesn't Collections.Generic.Queue have Synchronized method but Collections.Queue has?
问题 System.Collections.Queue class has Queue.Synchronized method which returns a thread-safe Queue implementation. But the generic one, System.Collections.Generic.Queue does not have a Synchronized method. At this point I have two questions in mind: Why doesn't generic one have this method? Is it a framework API design decision? How is the queue returned from Queue.Synchronized is different than ConcurrentQueue<T> class? Thanks. 回答1: The Synchronized() method returns a wrapper queue that slaps a