摘要:
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 阅读全文
摘要:
class T implements Runnable { Thread t1,t2; T() { t1=new Thread(this); t2=new Thread(this); } public void run() { if(Thread.currentThread()==t2) { t1. 阅读全文