Y
Hacker News
new
|
ask
|
show
|
jobs
by
hythloday
5217 days ago
Just FYI, ConcurrentHashMap is indeed lockfree (although it's got a gargantuan memory footprint). Wrapping your HashMap with Collections.synchronizedMap gives you a blocking threadsafe HashMap.
1 comments
runT1ME
5217 days ago
ConcurrentHashMap is not lock free, it uses lock striping across multiple buckets.
link
hythloday
5216 days ago
I stand corrected.
link