摘要:
多线程同步实现对x加减一的方法 1 public class SynThreadTest { 2 private int x; 3 // 设计两个线程,一个对x加1,一个对x减1 4 5 public static void main(String[] args) { 6 SynThreadTest stt = new SynThreadTest(); 7 inc inc =stt.new inc(); 8 Thread threadA = new Thread(inc); 9 threadA.start... 阅读全文
posted @ 2013-03-28 11:10
ZOWIE
阅读(363)
评论(0)
推荐(0)
浙公网安备 33010602011771号