摘要: 以下cchm代表concurrenthashmap 1.相比于1.7剔除了segment分段锁,但本质上都是锁竞争 2.使用synchronized+cas保证节点线程安全 3.结构上,和hashmap一样,像加载因子、初始容量等 4.对比hashtable,hashtable 是对全table加锁 阅读全文
posted @ 2023-08-18 00:10 sellingpear 阅读(40) 评论(0) 推荐(0)