摘要: /*懒汉式--线程不安全*如果多个线程同时进入if(uniqueInstance == null),且unniqueInstance为null,那么unniqueinstance = new Singleton();就会执行多次**/public class Singleton { private 阅读全文
posted @ 2019-07-02 15:02 Tamako521 阅读(105) 评论(0) 推荐(0) 编辑