Singleton Software Design Pattern

  • Thread starter Thread starter Taher Hassan
  • Start date Start date
T

Taher Hassan

Guest
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

Continue reading...
 
Back
Top