hashmap在多线程下数据丢失问题_hashmap多线程数据丢失-CSDN博客文章浏览阅读2.9k次。我们都知道hashmap是非线程安全的。什么是非线程安全呢?个人理解,就是在多线程环境下,一个线程对值做变更时,不会立即同步到其他线程,这时候其他线程获取该值的话就是取到旧值,如果在此基础上...... admin2024-01-23