static async Task Main(string[] args) { Console.WriteLine("Hello World!"); var chapter01 = new Chapter01(); chapter01.Deadlock(); Console.WriteLine("After deadlock"); }
private void button1_Click(object sender, EventArgs e) { label1.Text = _chapter01.Deadlock().ToString(); }