Search:

Type: Posts; User: tcstcs

Search: Search took 0.07 seconds.

  1. Replies
    4
    Views
    2,430

    Re: Optimizing Singleton Design Pattern

    Here is my singletonclss code

    class SingletonClass {

    private static SingletonClass singletonObject;
    /** A private Constructor prevents any other class from instantiating. */
    private...
  2. Replies
    4
    Views
    2,430

    Optimizing Singleton Design Pattern

    Hi,

    Given a singleton class, if too many threads start accessing the class, the performance will get hampered. SO how do we optimize the code for this?
Results 1 to 2 of 2