摘要: 1. 加在普通方法上 单例下互斥,非单例无用 1 public class Test { 2 3 private synchronized void syncMethod1() { 4 System.out.println("in1:" + System.currentTimeMillis() / 阅读全文
posted @ 2019-07-02 15:27 悠拽的无双文士 阅读(230) 评论(0) 推荐(0)