C# producer/consumer
问题 i've recently come across a producer/consumer pattern c# implementation. it's very simple and (for me at least) very elegant. it seems to have been devised around 2006, so i was wondering if this implementation is - safe - still applicable Code is below (original code was referenced at http://bytes.com/topic/net/answers/575276-producer-consumer#post2251375) using System; using System.Collections; using System.Threading; public class Test { static ProducerConsumer queue; static void Main() {