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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -