ConcurrentSkipListMap supported SortedMap and NavigableMap. If you need data sorted, this is hte one to use (Or TreeMap if you don't need concurrency)
You can also wrap it with Collections.setFromMap() to create a concurrent SortedSet.
ConcurrentSkipListMap is built for higher concurrency performance whereas a ConcurrentHashMap is geared towards great map-sizes performance.
Read full article from java - What are the benefits of ConcurrentSkipListMap? - Stack Overflow
You can also wrap it with Collections.setFromMap() to create a concurrent SortedSet.
ConcurrentSkipListMap is built for higher concurrency performance whereas a ConcurrentHashMap is geared towards great map-sizes performance.
Read full article from java - What are the benefits of ConcurrentSkipListMap? - Stack Overflow
No comments:
Post a Comment