Link Details

Link 120236 thumbnail
User 295982 avatar

By duydo
via doquocduy.wordpress.com
Published: Sep 28 2008 / 16:02

What is Singleton Pattern? When and How to use it effectively? Give some techniques fix problems with Singleton in multi-threading environment.
  • 8
  • 6
  • 2031
  • 419

Comments

Add your comment
User 277934 avatar

jfpoilpret replied ago:

0 votes Vote down Vote up Reply

This blog post does not really show any real use case for singleton (which I consider more an anti-pattern than a real pattern).
Moreover, it does not show the recommended way to implement one with enum (check Effective Java 2nd edition).

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.