What is the point of making the singleton instance volatile while using double lock?
Asked 2012-07-24T21:40:31.500
47
private volatile static Singleton uniqueInstance
In a singleton when using double lock method for synchronization why is the single instance declared as volatile ? Can I achieve the same functionality without declaring it as volatile ?