Singleton pattern should be used when we must ensure that only one instance of a class is created and when the instance must be available through all the code. A special care should be taken in multithreading environments when multible threads must access the same resources throught the same singleton object.
Friday, October 28, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment