ConcurrentHashMap internal working in java | ConcurrentHashMap internal implementation in java

  Рет қаралды 68,910

KK JavaTutorials

KK JavaTutorials

6 жыл бұрын

In this video we will learn about how ConcurrentHashMap internal works in java

Пікірлер: 11
@TechieMit
@TechieMit Жыл бұрын
Nicely explained
@suntossh
@suntossh 5 жыл бұрын
best Video of CHM on Internet
@dileepmaurya8411
@dileepmaurya8411 6 жыл бұрын
segment is used in java 8 you can see comment over segment
@Azhagusuryaa2696
@Azhagusuryaa2696 5 жыл бұрын
Is data itself partioning as segments when they are created.?? Like i have added 16 entries in the map. 1 segment. What happened when im adding the 17 th entry. My doubt is 1.how the segment is being created whether from the existing data or data entry put into the segments, 2. How segment retrieval happens for acquiring the lock.
@jayjoshi1366
@jayjoshi1366 Жыл бұрын
I found this explanation perfect for ConcurrentHashMap. Thanks for your efforts and sharing this with us. But a question arises --> If ConcurrentHashMap is not a better choice in case of more write operation doing Threads as it blocks and decrease the performance, then what would be another better choice ? Which data structure to use in place of ConcurrentHashMap if an app is having multiple write operations concurrently ? Please provide me an answer for this. Thanks _/\_
@ruchirpandit1885
@ruchirpandit1885 5 жыл бұрын
So, concurrent hashmap is not a great choice if too many threads are writing to map as write operation creates lock on segment and if multiple threads write to same segment then it has perf impact. do you know of better choice for multiple write concurrency than concurrenthashmap ? Thanks
@gemphu1234
@gemphu1234 4 жыл бұрын
In the diagram , you are showing each bucket of the hash table array is locked and you are calling them segment. It is not right. segment array is different and each segment may point to some of the bucket range in the hash table array based on the number of segments or concurrency level.
@pareshbapna3386
@pareshbapna3386 5 жыл бұрын
Best efforts but language is a constraint while explanation. If Hindi is better then opt for Hindi tutorials rather than English ones.
@alavudin7695
@alavudin7695 4 жыл бұрын
Please correct your explanation about segment, its not correct
@zmxncbv95
@zmxncbv95 5 жыл бұрын
Try to explain the concept ... average users will not be able to understand your explanation.
ConcurrentHashMap example in java
10:55
KK JavaTutorials
Рет қаралды 6 М.
Watermelon Cat?! 🙀 #cat #cute #kitten
00:56
Stocat
Рет қаралды 28 МЛН
$10,000 Every Day You Survive In The Wilderness
26:44
MrBeast
Рет қаралды 136 МЛН
Please be kind🙏
00:34
ISSEI / いっせい
Рет қаралды 56 МЛН
How HashMap works in Java? With Animation!! whats new in java8 tutorial
15:29
Ranjith ramachandran
Рет қаралды 1 МЛН
🔥Concurrent Collections in Java  | Java Interview questions
23:35
Learn Code With Durgesh
Рет қаралды 10 М.
01. Internal Working of HashMap & Java-8 Enhancement
19:11
WebEncyclop Tutorials
Рет қаралды 101 М.
How does HashMap internally works | Java Interview Questions in Hindi
17:04
Learn Code With Durgesh
Рет қаралды 90 М.
Watermelon Cat?! 🙀 #cat #cute #kitten
00:56
Stocat
Рет қаралды 28 МЛН