Post a Job  |   Ask a Question?   |   Already registered? login or register
Saroj Sahoo
03/06/2015 12:38 PM

About Bucket Lock

Can anybody can explain about bucket level lock used in ConcurrentHashMap??
Spam    2 Comments

03/06/2015 12:55:48
n previous like Hashtable ,the one thread has locked the whole Hashtable .And only one thread can locked by at a time and other thread has to wait .But in ConcurrentHashMap ,it has default capacity is 16 .i.e the Hashtable is partition into 16 bucket and possible is 16 thread can possible lock the bucket . I hope i give the answer as ur need.

06/06/2015 09:39:03
somehow i got ur point........anyway thanks for d support.....keep it up............

Languages :