|
Re: about singleton classes uses
|
Posted: Jun 3, 2004 12:32 AM
|
|
Well, it should not happen, unless singleton is not implemented properly.
Issues that may arise depends on the criticality of behaviour defined for that singleton class. Remr two presidents of USA!!
Or two threads now trying to change the state of data base objects (while data base objects were not thread safe) and were expecting co-operation from singleton class instance that were implementing thread safe feature.
So issues that may and can arise are immense depending on behaviour put within singleton class.
regards, Shashank
|
|