I came across this article discussing why the double-check locking paradigm is broken in Java. Is the paradigm valid for .NET (in particular, C#), if variables are declared volatile?
I came across this article discussing why the double-check locking paradigm is broken in
Share
Implementing the Singleton Pattern in C# talks about this problem in the third version.
It says:
The author seems to imply that double locking is less likely to work than other strategies and thus should not be used.