队列之生产者.消费者模式 using System; using System.Threading; using NServiceKit.Redis; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { //开启一个线程添加生产者 Thread thread = new Thread(Run); thread.Start(); //开启10个线程来进行消费 Thread[] threa…