ConcurrentHashMap and Hashtable in Java [duplicate]
ConcurrentHashMap and Hashtable locking mechanism Hashtable is belongs to the Collection framework; ConcurrentHashMap belongs to the Executor framework. Hashtable uses single lock for whole data. ConcurrentHashMap uses multiple locks on segment level (16 by default) instead of object level i.e. whole Map. ConcurrentHashMap locking is applied only for updates. In case of retrievals, it allows … Read more