how to handle a singleton service locator. when multiple threads
are trying to get the singleton object in same time
Answer Posted / sitaram
Singleton service means only one service provide at a
time.When multiple threads are trying to get the singleton
object in the same time.we can get an error. because only
one object provide in complete application.
| Is This Answer Correct ? | 17 Yes | 3 No |
Post New Answer View All Answers
Is namespace same as package in java?
What is a conditional equation?
How does varargs work in java?
What is collection class in java? List down its methods and interfaces.
Can we call thread start () twice?
Is map sorted in java?
Why do we use variables?
What is data type in computer?
What is meant by attribute?
How do you convert bytes to character in java?
what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread
What is diamond operator in java?
What is a boolean output?
what is the messsage u r going to get from an objectoriented programing?
What is the difference between an interface and an abstract class?