What is the difference between using the wrapper class, SynchronizedMap, on a HashMap and ConcurrentHashMap?
SynchronizedMap
HashMap
ConcurrentHashMap
Is it just bein
Methods on SynchronizedMap hold the lock on the object, whereas in ConcurrentHashMap there's a concept of "lock striping" where locks are held on buckets of the contents instead. Thus improved scalability and performance.