java - Regarding ConcurrentHashMap, what does the following mean? -
directly concurrenthashmap javadocs:
the allowed concurrency among update operations guided optional concurrencylevel constructor argument (default 16), used hint internal sizing. table internally partitioned try permit indicated number of concurrent updates without contention. because placement in hash tables random, actual concurrency vary.
i not point when say: "which used hint internal sizing". should not sizing determing capacity , not concurrencylevel?
the table internally partitioned - means divide table concurrencylevel divisions in hopes can many concurrent updates without collisions.
there no guarantee hashed data fall nicely in partitions.
Comments
Post a Comment