|
|
1
1
请注意,双重检查的java实现被称为“断模式”,因为它被证明是失败的(例如,请参见 http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
|
|
|
2
3
你也可以考虑使用
|