Skip to content

Commit d6d25c9

Browse files
authoredMar 9, 2019
Fix formatting
1 parent 59c9502 commit d6d25c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ This advice equally applies to lambdas passed into `ConcurrentHashMap`’s `comp
158158
See also [JCIP 11.4.1] and [EJ Item 79].
159159

160160
<a name="increase-locking-granularity"></a>
161-
[#](#increase-locking-granularity) Sc.2. Is it possible to **increase locking granularity**? If a thread-safe class encapsulates accesses to map, is it possible to **turn critical sections into lambdas passed into `ConcurrentHashMap.compute()`** or `computeIfAbsent()` or `computeIfPresent()` methods to enjoy effective per-key locking granularity? Otherwise, is it possible to use [**Guava’s `Striped`](https://github.com/google/guava/wiki/StripedExplained)** or an equivalent? See [JCIP 11.4.3] for more information about lock striping.
161+
[#](#increase-locking-granularity) Sc.2. Is it possible to **increase locking granularity**? If a thread-safe class encapsulates accesses to map, is it possible to **turn critical sections into lambdas passed into `ConcurrentHashMap.compute()`** or `computeIfAbsent()` or `computeIfPresent()` methods to enjoy effective per-key locking granularity? Otherwise, is it possible to use **[Guava’s `Striped`](https://github.com/google/guava/wiki/StripedExplained)** or an equivalent? See [JCIP 11.4.3] for more information about lock striping.
162162

163163
<a name="non-blocking-collections"></a>
164164
[#](#non-blocking-collections) Sc.3. Is it possible to **use non-blocking collections instead of blocking ones?** Here are some possible replacements within JDK:

0 commit comments

Comments
 (0)