About 51 results
Open links in new tab
  1. How does ConcurrentHashMap work internally? - Stack Overflow

    The ConcurrentHashMap is very similar to the java.util.HashTable class, except that ConcurrentHashMap offers better concurrency than HashTable or synchronizedMap does.

  2. ConcurrentHashMap in Java? - Stack Overflow

    May 14, 2010 · What is the use of ConcurrentHashMap in Java? What are its benefits? How does it work? Sample code would be useful too.

  3. ConcurrentHashMap vs Synchronized HashMap - Stack Overflow

    Aug 18, 2009 · 7 ConcurrentHashMap uses finer-grained locking mechanism known as lock stripping to allow greater degree of shared access. Due to this it provides better concurrency and scalability. …

  4. Why there is no ConcurrentHashSet against ConcurrentHashMap

    Aug 9, 2011 · Based on this, I am confused that why we don't have a ConcurrentHashSet which should be based on the ConcurrentHashMap? Is there anything else that I am missing?

  5. Performance ConcurrentHashmap vs HashMap - Stack Overflow

    How is the performance of ConcurrentHashMap compared to HashMap, especially .get () operation (I'm especially interested for the case of only few items, in the range between maybe 0-5000)? Is there...

  6. java - When to use ConcurrentHashMap - Stack Overflow

    Use ConcurrentHashMap only when the class where it's being used is thread safe; otherwise the use of a thread safe data structure in a non thread safe class adds to the confusion of the next person …

  7. java - Is ConcurrentHashMap totally safe? - Stack Overflow

    However, although ConcurrentHashMap is a thread-safe drop-in replacement for HashMap, it is important to realize that if you are doing multiple operations you may have to change your code …

  8. java - examples of ConcurrentHashMap - Stack Overflow

    Using ConcurrentHashMap is recommended for large Maps or large number of read-write operations due to: When reading from the map, it's not locked. Thus, if 5 threads are reading from it, all of them …

  9. Is iterating ConcurrentHashMap values thread safe?

    Sep 22, 2010 · In javadoc for ConcurrentHashMap is the following: Retrieval operations (including get) generally do not block, so may overlap with update operations (including put and remove). Retrievals …

  10. What's the difference between ConcurrentHashMap and Collections ...

    Feb 4, 2009 · The ConcurrentHashMap uses very sophisticated techniques to reduce the need for synchronization and allow parallel read access by multiple threads without synchronization and, …