private static void DiningPhilosophers() { Console.WriteLine("--- Dining philosophers ---"); var table = new DiningTable(); table.Run(); }
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(); }