李创 发表于 2012-3-19 10:24 class thread implements Runnable {
段浩亮 发表于 2012-3-19 10:31 你建了4个thread对象,4个线程分别执行的是4个对象里的run方法,有四把锁,把代码改成这样 thread t1=new thre ...