0

Hi,

Actually, I want to make one Singleton class which will create one instance for one thread. I mean if we have 10 threads, then Singleton will create only one object for one thread. IF same thread will ask for one more instance it will return the same instance. Basically, my singeton is not process-specific, it would be thread-specific. Please tell how I can think for this modification of Singleton. I don't want the code but I need the idea how to proceed for the same. May be links or snippets will help. Thanks in advance.

3
Contributors
2
Replies
15
Views
1 Year
Discussion Span
Last Post by vijayan121
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.