Posted By:
Nilanjan_Sengupta
Posted On:
Thursday, September 2, 2004 01:39 PM
If your object is a singleton, you will have only instance of that object. Normally you will define static methods in your singleton object. Various users of your system can have access to this single instance. The static methods will ensure that all accesses are thread safe. Whoever secures the lock, will have access to the object, the others will wait to obtain the lock and then access the method.