ConcurrentHashMap achieves its scalability and thread-safety by partitioning actual map into number of sections. This 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.