How does ChronicleMap handle concurrent reads and writes to same key?

176 Views Asked by At

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?

0

There are 0 best solutions below