We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cf35fc commit e32b440Copy full SHA for e32b440
double-checked-locking/src/main/java/com/iluwatar/doublechecked/locking/App.java
@@ -5,6 +5,11 @@
5
6
/**
7
*
8
+ * Double Checked Locking is a concurrency design pattern used to reduce the overhead
9
+ * of acquiring a lock by first testing the locking criterion (the "lock hint") without
10
+ * actually acquiring the lock. Only if the locking criterion check indicates that
11
+ * locking is required does the actual locking logic proceed.
12
+ * <p>
13
* In {@link Inventory} we store the items with a given size. However, we do not store
14
* more items than the inventory size. To address concurrent access problems we
15
* use double checked locking to add item to inventory. In this method, the
0 commit comments