how to handle a singleton service locator. when multiple threads
are trying to get the singleton object in same time
Answer Posted / krishnapal
Using synchronized method we can using put requesting
threads into waiting queue.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is n in java?
What do you mean by synchronized non access modifier?
What are different types of inner classes ?
What is the abstraction?
What is javac_g?
what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread
How do I find and replace in word?
What are the different types of garbage collectors in java?
Explain about procedural programming language or structured programming language and its features?
How do you pass by reference?
Can we declare register variable as global?
What is the biggest integer?
This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }
What are parsers? Dom vs sax parser.
Can a constructor have different name than a class name in java?