开发者

What are the benefits of ConcurrentSkipListMap? [duplicate]

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜