Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: ConcurrentHashMap doubt

  1. #1
    Junior Member
    Join Date
    Jan 2011
    Thanked 0 Times in 0 Posts

    Default ConcurrentHashMap doubt

    Hi All,

    I beleive ConcurrenthashMap is optimized for multiple reader and single writer and it achieved it by locking portion of map defined by some constant like "ConcurrencyLevel" in ConcurrentHashMap classs. my doubt is does CHM gets locked during Iteration also or not ?

  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Washington, DC
    My Mood
    Thanked 636 Times in 540 Posts

    Default Re: ConcurrentHashMap doubt

    What happened when you wrote a little program to test it out?

    Also, did you read the API: ConcurrentHashMap (Java Platform SE 6)
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. !! Tomcat doubt !!
    By mailbox4anilkumar in forum Java Servlet
    Replies: 2
    Last Post: April 20th, 2011, 01:15 PM
  2. Doubt regarding LIST
    By puneetsr in forum Collections and Generics
    Replies: 1
    Last Post: February 23rd, 2010, 04:19 PM
  3. Which javadoc tag is used to denote a comment for a method parameter?
    By TARUN JORA in forum Java Theory & Questions
    Replies: 2
    Last Post: May 15th, 2009, 04:30 PM
  4. Replies: 2
    Last Post: October 7th, 2008, 11:03 PM

Tags for this Thread