java源码
nsxqf
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
JDK7与JDK8中ConcurrentHashMap的实现
参考:http://www.jianshu.com/p/e694f1e868ecConcurrentHashMap在多线程环境下,使用HashMap进行put操作时存在丢失数据的情况,为了避免这种bug的隐患,强烈建议使用ConcurrentHashMap代替HashMap,为了对ConcurrentHashMap有更深入的了解,本文将对ConcurrentHashMap1.7和1.8的不...原创 2018-11-09 21:10:46 · 499 阅读 · 0 评论 -
JDK7与JDK8中HashMap的实现
参考:http://www.importnew.com/23164.htmlhttp://blog.youkuaiyun.com/q291611265/article/details/46797557一、JDK7中的HashMapHashMap底层维护一个数组,数组中的每一项都是一个Entrytransient Entry<K,V>[] table; 为什么这里的tab...原创 2018-11-08 22:22:27 · 170 阅读 · 0 评论
分享