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 are basic keywords?

0 Answers  


How to pass arraylist to stored procedure in java?

0 Answers  


what is the difference between @include page and @include file

2 Answers  


Explain the difference between an Interface and an Abstract class?

0 Answers   BirlaSoft,


how does the run() method in runnable work? : Java thread

0 Answers  


What is the difference between iterator and enumeration ?

0 Answers  


What does n mean?

0 Answers  


whays is mean by inner class?

4 Answers   HCL, IBM, TCS,


what is heap memory?

0 Answers   Tavant Technologies, Zensar,


class A { public void disp(int a,int b) { System.out.println("hai"); } } class B { public void disp(int a,int b,int c) { System.out.println("hai"); } } above program is overloading or overriding?

9 Answers   Infosys, Wipro,


How do you declare an infinite loop?

2 Answers  


can we access the super class method using subclass object?

4 Answers  


Categories