When should I use ConcurrentSkipListMap?

前端 未结 6 1481
孤独总比滥情好
孤独总比滥情好 2020-12-12 13:31

In Java, ConcurrentHashMap is there for better multithreading solution. Then when should I use ConcurrentSkipListMap? Is it a redundan

6条回答
  •  無奈伤痛
    2020-12-12 14:11

    Based on workloads ConcurrentSkipListMap could be slower than TreeMap with synchronized methods as in KAFKA-8802 if range queries are needed.

提交回复
热议问题