摘要: 1 //单例模式: 2 //1. 双检锁机制 Volatile.write() 3 //2. 静态变量 4 //3. Interlocked.CompareExchange(ref single, temp, null); 模式 5 6 private static Singleton sing... 阅读全文
posted @ 2017-03-09 16:03 Young汨 阅读(503) 评论(0) 推荐(0) 编辑