|
|
|
|
|
by aardvark179
5031 days 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 |
|
Yes, thread-safety is hard in these languages. You have to think about code when you write it.