Quantcast
Channel: ReentrantReadWriteLock hang when used within ConcurrentHashMap::compute() - Stack Overflow
Browsing all 2 articles
Browse latest View live

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 Article



ReentrantReadWriteLock 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
Browsing all 2 articles
Browse latest View live


Latest Images