In Java, ConcurrentHashMap
is there for better multithreading
solution. Then when should I use ConcurrentSkipListMap
? Is it a redundan
See Skip List for a definition of the data structure.
A ConcurrentSkipListMap stores the Map in the natural order of its keys (or some other key order you define). So it'll have slower get
/put
/contains
operations than a HashMap, but to offset this it supports the SortedMap, NavigableMap, and ConcurrentNavigableMap interfaces.