Java Reference
In-Depth Information
Splitting a lock into two offers the greatest possibility for improvement when the lock is ex-
periencing moderate but not heavy contention. Splitting locks that are experiencing little con-
tention yields little net improvement in performance or throughput, although it might increase
the load threshold at which performance starts to degrade due to contention. Splitting locks
experiencing moderate contention might actually turn them into mostly uncontended locks,
which is the most desirable outcome for both performance and scalability.
Listing 11.6. Candidate for Lock Splitting.
Search WWH ::




Custom Search