• Post Reply Bookmark Topic Watch Topic
  • New Topic

ConcurrentHashMap read while resizing  RSS feed

 
s ravi chandran
Ranch Hand
Posts: 579
6
Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would like to know the possible scenarios that can occur when we are trying to read a ConcurrentHashMap while it is resizing.

I know that during read, first attempt is always unsynchronized. In second attempt it will try to acquire lock and retry.

But if it happens during resizing how would it work?

Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!