Talk:Singleton design pattern: Thread-safe Singleton
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
Can someone please elaborate on the statement following "double-check locking", which says it doesn't work in all cases. I don't understand why it wouldn't.--Hiderrt1 11:04, 13 August 2007 (EDT)
Especially if you work in more than one language, it is better to avoid the risks of implementation dependent semantic issues. And, a problem free implementation requires the use of specific runtime support features, e.g. volatile.
--Editor 13:00, 2 September 2008 (EDT)