Top "Double-checked-locking" questions

Double-checked locking is a software design pattern used to reduce the overhead of acquiring a lock by first testing the locking criterion without actually acquiring the lock.

Double-checked locking in .NET

I came across this article discussing why the double-check locking paradigm is broken in Java. Is the paradigm valid for .…

.net multithreading paradigms double-checked-locking
Java double checked locking

I happened upon an article recently discussing the double checked locking pattern in Java and its pitfalls and now I'm …

java multithreading synchronization singleton double-checked-locking
What is the point of making the singleton instance volatile while using double lock?

private volatile static Singleton uniqueInstance In a singleton when using double lock method for synchronization why is the single instance …

java singleton volatile thread-synchronization double-checked-locking
Why is volatile used in double checked locking

From Head First design patterns book, the singleton pattern with double checked locking has been implemented as below: public class …

java design-patterns locking singleton double-checked-locking
why using volatile with synchronized block?

I saw some examples in java where they do synchronization on a block of code to change some variable while …

java multithreading volatile synchronized double-checked-locking
Singleton pattern and broken double checked locking in a real-world Java application

I was reading the article Double-checked locking and the Singleton pattern, on how double checked locking is broken, and some …

java singleton double-checked-locking
Double-checked locking without volatile

I read this question about how to do Double-checked locking: // Double-check idiom for lazy initialization of instance fields private volatile …

java multithreading final java-memory-model double-checked-locking