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

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

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

url rewriting - How to redirect a http POST with urlrewritefilter -