Jay Roy
asked on
concurrent hashmap accuracy
If multiple threads are concurrently modifying a concurrenthashmap, how does it maintain the accuracy of data in it?
A simple answer would be highly appreciated.
thx.
A simple answer would be highly appreciated.
thx.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Its worth noting that there is no synchonization of any of its methods.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:)
I guess it is different for HashTable, so if there is such issue you can use HashTable
Unlike the new collection implementations, Hashtable is synchronized.
http://download.oracle.com/javase/1.4.2/docs/api/java/util/Hashtable.html