If I create 2 instances for singleton pattern class at a time when 2 threads are accessing the same class, what will happen in case of singleton?
[B]Question asked by visitor vengs[/b]
Printable View
If I create 2 instances for singleton pattern class at a time when 2 threads are accessing the same class, what will happen in case of singleton?
[B]Question asked by visitor vengs[/b]
I think the following URL is helpful to you....
[URL="http://radio.weblogs.com/0122027/stories/2003/10/20/implementingTheSingletonPatternInJava.html"]ImplementingTheSingletonPatternInJava[/URL]