HashMap vs ConcurrentHashMap

From HashMap to ConcurrentHashMap: when your code outgrows single threads.