开发者

What are the benefits of ConcurrentSkipListMap? [duplicate]

开发者 https://www.devze.com 2023-02-19 05:55 出处:网络
This question already has answers here: Closed 10 years ago. Possible Duplicate: 开发者_运维百科When should I use ConcurrentSkipListMap?
This question already has answers here: Closed 10 years ago.

Possible Duplicate:

开发者_运维百科When should I use ConcurrentSkipListMap?

I mean if there is ConcurrentSkipListMap in java libs it might be sometimes better than ConcurrentHashMap. I wonder where ConcurrentSkipListMap really good?


ConcurrentSkipListMap supported SortedMap and NavigableMap. If you need data sorted, this is the one to use (Or TreeMap if you don't need concurrency)

You can also wrap it with Collections.setFromMap() to create a concurrent SortedSet.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号