Beispiel #1
0
        static async Task Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            var chapter01 = new Chapter01();

            chapter01.Deadlock();
            Console.WriteLine("After deadlock");
        }
Beispiel #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     label1.Text = _chapter01.Deadlock().ToString();
 }