Reputation: 4973
Suppose I have multiple threads accessing a map (actions are: inserting, retrieving, removing), and I'm using ConcurrentHashMap
, do I need to do anything else or does ConcurrentHashMap 'covers' me?
Is there still something 'bad' that can happen?
Upvotes: 0
Views: 218
Reputation: 34900
Because we do not know all scenarios of your task, according to what you have described, imho ConcurrentHashMap
is sufficient.
Upvotes: 1