none
Singleton Software Design Pattern RRS feed

  • Question

  • Hi there. This is just a suggestion to the Community and a request to engage with the Microsoft Development Community. Just a thought on the Singleton Design Pattern which for example can used for a log file. I don't think that this should be used in a multi-threaded application since it can lead to threads queueing for access. Instead there should be one Singleton object per thread which in this case would mean more than 1 log file. This is an important consideration for high performance applications and as far as logging is concerned leads to better logging.

    Many thanks and best regards, Taher Hassan

    Sunday, September 29, 2019 9:29 AM

All replies

  • Sorry, just wanted to add what do you think please ? Any thoughts / suggestions very welcome.

    Many thanks and best regards, Taher Hassan

    Sunday, September 29, 2019 9:36 AM
  • I think you need to make all of your posts like this a discussion, not a question.


    Sam Hobbs
    SimpleSamples.Info

    Sunday, September 29, 2019 6:39 PM
  • Hi Taher,

    Welcome to the MSDN forum.

    Since your issue is more about VS product usage recommendations, so if you want to get what you want, l suggest you can report your problem to the Product Team. 

    >>Please click "Suggest a feature" to arouse their attention and they will take your suggestion seriously will give you a perfect answer.

    Thanks for your understanding.

    Best Regards,

    Perry


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Monday, September 30, 2019 9:45 AM