2014年10月23日
摘要: 用synchronized(syncObject)看起来比较好如下:public class test_sync extends Thread {Integer x = 0;public test_sync() {} public void run() { try { Thread.sleep... 阅读全文
posted @ 2014-10-23 08:25 lion382 阅读(1548) 评论(0) 推荐(0) 编辑