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 n in java?

894


What do you mean by synchronized non access modifier?

941


What are different types of inner classes ?

985


What is the abstraction?

965


What is javac_g?

967


what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread

1068


How do I find and replace in word?

917


What are the different types of garbage collectors in java?

1048


Explain about procedural programming language or structured programming language and its features?

1023


How do you pass by reference?

985


Can we declare register variable as global?

893


What is the biggest integer?

994


This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }

938


What are parsers? Dom vs sax parser.

983


Can a constructor have different name than a class name in java?

1082