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
Post a Comment