Link Details

DZone voters are special people. Be special. Login and vote now.
Link 91299 thumbnail
User 185351 avatar

By jsugrue
via java.dzone.com
Published: Jun 30 2008 / 08:21

In theory everyone knows Hash Map is not Thread Safe and it shouldn’t be used in multi Threaded applications. But still people come out with their own theories that they can use HashMap in their context. Some say they are just reading the data and map is not written to a lot. Unfortunately none of these explanations holds good when one lands up in a synchronization issue
  • 13
  • 2
  • 1039
  • 334

Comments

Add your comment
User 266646 avatar

climber76 replied ago:

0 votes Vote down Vote up Reply

Hi all,

Glance at ConcurrentHashMap

User 79175 avatar

imeshev replied ago:

0 votes Vote down Vote up Reply

The next thing we hear is that arrays and longs should not be used in multi-treaded applications. What a horrible BS.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.