Randall Twede wrote:when you use singleton pattern you don't have to synchronize any code
Junilu Lacar wrote:if the singleton does not have any member fields (that is, it is a stateless singleton) and consists only of methods, then it is going to be inherently thread-safe.
Junilu Lacar wrote:one would think that extra care must be taken in accessing any fields in the singleton so that you don't run into any concurrency problem
Anayonkar Shivalkar wrote:
How? ... how this object is different from any other object?
I'm still not getting how thread safety is related to a class being normal one or singleton one.
Apart from that, if a class consists only methods, then I won't even make a single object of it. I would make all those methods as static, and start invoking them