原创 線程安全的單例模式

最常見的懶漢模式下的核心代碼if(instance == null) { instance = new Singleton(); } 如果一個