摘要:
高并发下也可以使用HashTable 、Collections.synchronizedMap因为他们是线程安全的,但是却牺牲了性能,无论是读操作、写操作都是给整个集合加锁,导致同一时间内其他操作均为之阻塞。 ConcurrentHashMap则兼容了安全和效率问题。 ConcurrentHashM 阅读全文
posted @ 2019-04-01 22:58 FLGB 阅读(1775) 评论(0) 推荐(0) 编辑
posted @ 2019-04-01 22:58 FLGB 阅读(1775) 评论(0) 推荐(0) 编辑
posted @ 2019-04-01 22:42 FLGB 阅读(210) 评论(0) 推荐(0) 编辑
posted @ 2019-04-01 22:31 FLGB 阅读(615) 评论(0) 推荐(0) 编辑
posted @ 2019-04-01 22:18 FLGB 阅读(145) 评论(0) 推荐(0) 编辑
Copyright © 2024 FLGB
Powered by .NET 8.0 on Kubernetes