Home  /  Questions  /  Question

Jun 24, 2011

Patterns in Action - SingletonLogger

I was assuming the Singleton logger should have thread synchronization in place for a real world application. However I do not find the lock on the Singleton instance.

Was it missed out purposefully or is it just a mistake? If it was left out on purpose, I would like to understand the reason for not having a lock.

Please provide appropriate information so that I can have clear understanding about this.