Is a HashMap thread-safe for different keys?

Posted by obvio171 on Stack Overflow See other posts from Stack Overflow or by obvio171
Published on 2010-04-22T06:24:41Z Indexed on 2010/04/22 6:33 UTC
Read the original article Hit count: 262

If I have two multiple threads accessing a HashMap, but guarantee that they'll never be accessing the same key at the same time, could that still lead to a race condition?

© Stack Overflow or respective owner

Related posts about java

Related posts about multithreading