ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Lazy Loading with Aspects
Subject:   beware of lazy loading
Date:   2004-06-28 11:56:12
From:   pk2
your code examples are not thread-safe. here's an article that tells you a bit more on how lazy loading can be dangerous in multi-threaded environments: Double-checked locking and the Singleton pattern

1 to 2 of 2
1 to 2 of 2