Exemplo n.º 1
0
        private void button8_Click(object sender, EventArgs e)
        {
            //构建2个对象
            LockObjectTest lock1 = new LockObjectTest();
            LockObjectTest lock2 = new LockObjectTest();

            //并发一个List
            lock1.StartT1();
            //lock1.StartT2();
            lock2.StartT2();
        }
 private void button8_Click(object sender, EventArgs e)
 {
     //构建2个对象
     LockObjectTest lock1 = new LockObjectTest();
     LockObjectTest lock2 = new LockObjectTest();
     //并发一个List
     lock1.StartT1();
     //lock1.StartT2();
     lock2.StartT2();
 }