Hacker News new | ask | show | jobs
by TYMorningCoffee 477 days ago
Both! The TreeMap is thread unsafe. The business logic needs to protect against concurrent access to the TreeMap or not use the treemap at all.