How to use and set appropriately concurrency level for ConcurrentHashMap?

后端 未结 5 1736
遥遥无期
遥遥无期 2020-12-17 09:20

I am working with around 1000 elements in concurrenthashmap . Default concurrency level is 16 . can anyone help me with some algorithm or factors from which i can identify t

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-17 10:17

    So,concurrency level is the equal to to the writer threads.And map will also segmented equals to the value of concurrency level.

提交回复
热议问题