use*_*756 3 java algorithm collections concurrency concurrenthashmap
我的意思是如果在java库中有ConcurrentSkipListMap,它有时可能比ConcurrentHashMap更好.我想知道ConcurrentSkipListMap真的好在哪里?
Pet*_*rey 10
ConcurrentSkipListMap支持SortedMap和NavigableMap.如果需要对数据进行排序,则可以使用(如果不需要并发,则使用TreeMap)
您还可以使用Collections.setFromMap()包装它以创建并发的SortedSet.
| 归档时间: |
|
| 查看次数: |
3978 次 |
| 最近记录: |