ConcurrentHashMap Lock Exception

I know that it is not possible to block ConcurrentHashMap for exclusive access. However, I can not find the reason.

Is it because the "segments" that make up CHM do not display api? Presumably if they were, client code could do a hand-over-hand lock?

Greetings

+1
source share
2 answers

I know that it is not possible to block ConcurrentHashMap for exclusive access. However, I can not find the reason.

- . ? ? ?

+2

concurrenthashMap JAVA, Synchronizationblock, lock API

0

All Articles