Beispiel #1
0
 public static void QueueC()
 {
     Console.WriteLine("Queue插入完成,进行输出:");
     while (QueueTest.GetCount() > 0)
     {
         QueueTest.OutData2();
     }
 }
Beispiel #2
0
        private static async void QueueB()
        {
            var task = Task.Run(() =>
            {
                for (int i = 0; i < 20; i++)
                {
                    QueueTest.IntoData("QueueB" + i);
                }
            });
            await task;

            Console.WriteLine("QueueB插入完成,进行输出:");
        }