public void Run() { var publisherThread = new Thread(() => publisher.Start()); publisherThread.Start(); var consumerThread = new Thread(() => consumer.Start()); consumerThread.Start(); }