Difference between concurrenthashmap and synchronized hashmap
Answers
Answered by
11
heya guys ur differences below
ConcurrentHashMap is thread safe without synchronizing the whole map. Reads can happen very fast while write is done with a lock. Both aresynchronized version of HashMap, with difference in their core functionality and their internal structure.
ConcurrentHashMap is thread safe without synchronizing the whole map. Reads can happen very fast while write is done with a lock. Both aresynchronized version of HashMap, with difference in their core functionality and their internal structure.
Similar questions