摘要:
以卖车票为例:class SyThread implements Runnable{private int ticket = 5;@Override public void run() {//for(int i=5; i>0; i--)for(int i=0; i 0){try {Thread.sl... 阅读全文
摘要:
以卖车票为例:class SyThread implements Runnable{ private int ticket = 5; @Override public void run() { //for(int i=5; i>0; i--) for(int i=0; i 0){ tr... 阅读全文