Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how to handle a singleton service locator. when multiple threads
are trying to get the singleton object in same time

Answers were Sorted based on User's Feedback



how to handle a singleton service locator. when multiple threads are trying to get the singleton ob..

Answer / 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

how to handle a singleton service locator. when multiple threads are trying to get the singleton ob..

Answer / krishnapal

Using synchronized method we can using put requesting
threads into waiting queue.

Is This Answer Correct ?    3 Yes 0 No

how to handle a singleton service locator. when multiple threads are trying to get the singleton ob..

Answer / wikipedia

Detailed answer here:
http://en.wikipedia.org/wiki/Singleton_pattern

Is This Answer Correct ?    0 Yes 1 No

how to handle a singleton service locator. when multiple threads are trying to get the singleton ob..

Answer / gowramma m

Two ways to create threads
1)by creating thread class
class classname extends Thread
{


}
2)By converting class to thread ie using Runnable interface

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More Core Java Interview Questions

What is difference between array and vector?

0 Answers  


What is ascii format?

0 Answers  


difference between jsp and java script?

3 Answers  


What is the final keyword denotes?

0 Answers  


Write a program to reverse array in place?

0 Answers  


steps to connect with Oracle Databse using TYPE-2 Jdbc driver.

3 Answers  


How do u pass data from one jsp to another jsp?

3 Answers   Fidelity,


Is null or empty java?

0 Answers  


How do you start a thread?

0 Answers  


How listener identify that the event came from a particular object?

0 Answers  


What is the size of string?

0 Answers  


Explain about object oriented programming and its features?

0 Answers  


Categories