...
The double-checked locking idiom improves performance by limiting synchronization to the rare case of new instance creation and foregoing it synchronization during the common case of retrieving an already created instance.
...
...
The double-checked locking idiom improves performance by limiting synchronization to the rare case of new instance creation and foregoing it synchronization during the common case of retrieving an already created instance.
...