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 the concurrency level suitable for my scenario or in what way a concurrency level affects the processing of multiple threads .
ConcurrentHashMap<String, String> map=new ConcurrentHashMap<String, String>(500,1,20);
20 is my concurrency level (dummy value) .Need to set this efficiently
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…