摘要: 一、synchronized关键字 1.可以用来修饰代码块 synchronized (this) { // 同步的关键字 this 表示当前线程对象 if (num == 0) { break; } num--; System.out.println(Thread.currentThread(). 阅读全文
posted @ 2019-11-25 19:03 少侠砍人不用刀 阅读(472) 评论(0) 推荐(0) 编辑