This technique is used to avoid unnecessary object creation in the multi-threading environment when lazy instantiation is used.
References:
- The "Double-Checked Locking is Broken" Declaration - Must read
- Double-checked locking - Wikipedia entry on this technique
Labels:
