摘要: 以卖车票为例: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... 阅读全文
posted @ 2013-08-02 22:37 peng_gy 阅读(97) 评论(0) 推荐(0)
摘要: 以卖车票为例: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... 阅读全文
posted @ 2013-08-02 22:37 peng_gy 阅读(80) 评论(0) 推荐(0)