A singleton class has a limited (usually 1) number of instances and are accessed statically using static methods or a combination of instance methods and a static getInstance() accessor method. Access to a singleton class method by multiple threads simultaneously is handled just like for any other kind of class -- if the method ain't synchronized, everybody gets "in". If the method is synchronized, the JVM serializes the invocations and lets each of them execute the method in turn.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
It's just a flesh wound! Or a tiny ad:
how do I do my own kindle-like thing - without amazon