About
Pricing
Community
Teams
Start Free Trial
Log in
royjayd
asked on
5/15/2011
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.
Java
6
3
Last Comment
CEHJ
8/22/2022 - Mon
SOLUTION
for_yan
5/15/2011
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Mick Barry
5/15/2011
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
for_yan
5/15/2011
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
Mick Barry
5/15/2011
Its worth noting that there is no synchonization of any of its methods.
ASKER CERTIFIED SOLUTION
CEHJ
5/16/2011
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
CEHJ
5/19/2011
:)
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
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