1

We are exploring using ChronicleMap as a replacement of ConcurrentHashMap within a single JVM with persistence option. Reading the docs, it says Within the JVM environment, a ChronicleMap instance is a ConcurrentMap, and could be accessed concurrently the same way as, for example, a ConcurrentHashMap .

I wanted to further understand, how concurrent reads/writes to same key is handled by ChronicleMap. Does it lock the segment containing the key, thereby allowing only 1 writer/multiple readers on the segment containing the key?

Saurav Prakash
  • 1,880
  • 1
  • 13
  • 24

0 Answers0