wood burning stoves 2.0*
The moose likes Java in General and the fly likes Regarding Singleton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Regarding Singleton" Watch "Regarding Singleton" New topic
Author

Regarding Singleton

santhosh kumar vk
Ranch Hand

Joined: Aug 25, 2009
Posts: 144
Hi,

Could you please tell me how many object will be created in multithreading programming for singleton.

Thanks,
Santhosh Kumar V.K
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10169
    
    8

One*. Thats why its called a Singleton.
*Of course this is presuming you have coded it correctly


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
santhosh kumar vk
Ranch Hand

Joined: Aug 25, 2009
Posts: 144
Hi,

Thank you for your reply, could you please tell me how to make singleton in multithreading.

Thanks,
Santhosh Kumar V.K
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10169
    
    8

Please ShowSomeEffort and SearchFirst
This has been asked, discussed and answered numerous times.
 
Don't get me started about those stupid light bulbs.
 
subject: Regarding Singleton
 
Similar Threads
Tech Word Game
How is Servlet a singleton?
Creating a utility managed bean, to move common code and use from different beans?
Why I lost points in locking, pls comment on my code
Hashtable's put method problem in locking