Hashtables , , , . , (, ), .
, , , .
HashMaps, :
Map m = Collections.synchronizedMap(new HashMap());
which wraps the map in synchronous method calls. But it has the same concurrency disadvantages as Hashtable.
According to Paul, ConcurrentHashMaps provides thread-safe maps with additional useful methods for atomic updates.
source
share