コード例 #1
0
        public void Run()
        {
            var publisherThread = new Thread(() => publisher.Start());

            publisherThread.Start();

            var consumerThread = new Thread(() => consumer.Start());

            consumerThread.Start();
        }