java - HashMap threadsafety when iterating over values -
is there elegant way make iterating on hashmap.values() threadsafe without making copy of underlying map?
cheers.
1) possibility hashmap synchronize access map.
2) use concurrenthashmap threadsafe (without being synchronized internally)
Comments
Post a Comment