Skip to main content

Singleton Design Pattern - An introspection

Posted by certmastermg on January 16, 2013 at 1:16 PM PST

Summary

This article provides an in-depth analysis of the famous Gang of Four design pattern - Singleton. Though it is one of the most simple design pattern but it is one of the most complex ones in terms of proper implementation. This article explains various complexities of the implementation and also provides solutions with help of easily understandable code and diagrams. I have tried to explain various details about the impact of using Singleton in multi threading environment, how it behaves inside the Heap. In the end I have provided practical application of the Singleton design pattern and shown how it behaves with other design patterns. Hope my readers will enjoy this article.

AttachmentSize
SingletonDesignPattern.zip395.43 KB