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

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -