摘要:
A.java class T implements Runnable { int money=10000; int goods=100; Thread t1,t2; T() { t1=new Thread(this); t2=new Thread(this); } // public synchro 阅读全文
posted @ 2016-05-12 22:41
榆次老城
阅读(93)
评论(0)
推荐(0)
摘要:
class T implements Runnable { Thread t1,t2; T() { t1=new Thread(this); t2=new Thread(this); } public void run() { if(Thread.currentThread()==t2) { t1. 阅读全文
posted @ 2016-05-12 22:10
榆次老城
阅读(272)
评论(0)
推荐(0)
浙公网安备 33010602011771号