Monday, 2 May 2016

What is concurrence level of ConcurrentHashMap in Java?


ConcurrentHashMap achieves its scalability and thread-safety by partitioning actual map into number of sectionsThis partitioning is achieved using concurrency level. 

It is optional parameter of ConcurrentHashMap constructor and it's default value is 16.

The table is internally partitioned to try to permit the indicated number of concurrent updates without contention.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.