1. CSS
  2. Flash
  3. HTML
  4. Illustrator
  5. Java
  6. JavaScript
  7. Maya
  8. Photography
  9. Photoshop
  10. PHP
  11. Ruby
  12. Ruby on Rails
  13. 3ds Max

Java: Difference between ConcurrentHashMap and Hashtable in Java

  1. Clicks today:
    0
  2. Clicks this month:
    1
  3. Overall rating:
    3.50/5

Java » Best Practices — over 5 years ago
ConcurrentHashMap is indeed best choice in case of multithreaded environment if numbers of reader is much greater than number of writer to avoid contention and to increase throughput and performance but deciding between SynchronizedHashMap and ConcurrentHashMap in Java is still requires understanding of use cases and actual environment.

Comments

Your Comment

You must be logged in to post a comment.