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

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


Please Help Members By Posting Answers For Below Questions

What is close method? How it's different from Finalize & Dispose?

1066


Are strings immutable in java?

985


How to do a true java ping from windows?

1158


Give the difference between the println method and sqrt method?

1086


Which language is java?

987


What is an array in java?

1199


How do you compare two strings lexicographically?

934


What is hashing principle in java?

1026


Is arraylist dynamic in java?

994


How do you implement polymorphism in our day to day life?

3233


What are the differences between Java 1.0 and Java 2.0?

2275


What does percent mean in java?

1028


what do you mean by stream pipelining in java 8? Explain

1028


What is qms certification?

955


Why are global variables used?

1022