Hacker News new | ask | show | jobs
by lucianbr 481 days ago
Java TreeMap is thread unsafe.

The business logic is thread unsafe because it uses a TreeMap concurrently. It should either use something else or lock around all usages of the TreeMap. It does not seem to be "in itself" wrong, meaning for any other cause than the usage of TreeMap.