コード例 #1
0
        private static void DiningPhilosophers()
        {
            Console.WriteLine("--- Dining philosophers ---");
            var table = new DiningTable();

            table.Run();
        }
コード例 #2
0
        private void StartSimulation(object o)
        {
            DispatcherTimer timer = new DispatcherTimer(new TimeSpan(0, 0, 0, 0, 1000), DispatcherPriority.Normal, Update, Dispatcher.CurrentDispatcher);

            timer.Start();

            startCommand.Action = null;

            table.Run();
        }