摘要: class MyThread implements Runnable{ //利用Runnable接口实现多线程操作 private int ticket=5; //定义5个票数 public void run(){ for(int i=0;i<99;i++){ synchronized(this){ 阅读全文
posted @ 2018-05-27 21:24 乐丶Sir 阅读(147) 评论(0) 推荐(0) 编辑