偏執旳、靑春 发表于 2013-2-24 21:57
假设t1先运行,t1运行到System.out.println(Thread.currentThread().getName()+"...if locka ");时。
t2又 ...
谢洋 发表于 2013-2-25 01:35
//这里是有产生了两个独立的Test对象
Thread t1 = new Thread(new Test(true));
Thread t2 = new Thread(ne ...
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |