4 ms·
And it highlights the issue that thread safe collections and thread safe objects are very different things. ConcurrentHashMap may be thread safe but putting non
by aardvark179 14y ago
And it highlights the issue that thread safe collections and thread safe objects are very different things. ConcurrentHashMap may be thread safe but putting non atomic Integers in there still leaves you vulnerable to threading problems
- badgar 14y ago> ConcurrentHashMap may be thread safe but putting non atomic Integers in there still leaves you vulnerable to threading problems Yes, thread-safety is hard in these languages. You have to think about code when you write it.