Answer by Elisha Ebenezer for ReentrantReadWriteLock hang when used within...
Observations Concurrent Maps has their on inbuilt locking mechanism we are not needed to acquire one ourselves Atomic* classes return within a "single" cpu cycle and hence no need of acquiring a lock...
View ArticleReentrantReadWriteLock hang when used within ConcurrentHashMap::compute()
TL;DR - In my application many threads grab a ReentrantReadWriteLock in READ mode while they are inserting entries into a ConcurrentHashMap via the compute() method, and release the READ lock once the...
View Article