java - Concurrent modification in ConcurrentHashMap -


i'm rookie world of java.until.concurrent. need insight before applying concurrenthashmap in code. theoretically map internally segments 16 metamerics(default segmentation though can customized). each catering different threads while processing. there 2 or more threads trying manipulate content on map... how synchronization happens across other threads subsequently while being read.

the synchronization transparent developer. since concurrentmap interface extends java.util.map. can invoke get/put methods on concurrenthashmap hashmap, jvm handle synchronization in background transparently. don't need care it.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -