Example #1
0
        static void Main(string[] args)
        {
            IBus bus = BusFactory.GetInmemoryBus();

            IBuffer firstComputerBuffer  = BufferFactory.GetInMemoryBuffer("deadlocking - input");
            IBuffer secondComputerBuffer = BufferFactory.GetInMemoryBuffer("deadlocking - input");

            IComputer firstComputer  = ComputerFactory.GetFastComputer(0, bus, firstComputerBuffer);
            IComputer secondComputer = ComputerFactory.GetSlowComputer(1, bus, secondComputerBuffer);

            firstComputer.StartExecution();
            secondComputer.StartExecution();

            while (true)
            {
                ;
            }
        }