ConcurrentHashMap internal working in java | ConcurrentHashMap internal implementation in java

  Рет қаралды 69,833

KK JavaTutorials

KK JavaTutorials

Күн бұрын

Пікірлер: 11
@TechieMit
@TechieMit 2 жыл бұрын
Nicely explained
@suntossh
@suntossh 6 жыл бұрын
best Video of CHM on Internet
@jayjoshi1366
@jayjoshi1366 2 жыл бұрын
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 _/\_
@dileepmaurya8411
@dileepmaurya8411 6 жыл бұрын
segment is used in java 8 you can see comment over segment
@pareshbapna3386
@pareshbapna3386 6 жыл бұрын
Best efforts but language is a constraint while explanation. If Hindi is better then opt for Hindi tutorials rather than English ones.
@Azhagusuryaa2696
@Azhagusuryaa2696 6 жыл бұрын
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.
@ruchirpandit1885
@ruchirpandit1885 6 жыл бұрын
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 5 жыл бұрын
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.
@alavudin7695
@alavudin7695 4 жыл бұрын
Please correct your explanation about segment, its not correct
@zmxncbv95
@zmxncbv95 6 жыл бұрын
Try to explain the concept ... average users will not be able to understand your explanation.
ConcurrentHashMap example in java
10:55
KK JavaTutorials
Рет қаралды 6 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
ConcurrentHashmap in Java and its differences with Synchronized HashMap
11:34
Introduction to CompletableFuture in Java 8
19:34
Defog Tech
Рет қаралды 333 М.
How HashMap works in Java? With Animation!! whats new in java8 tutorial
15:29
Ranjith ramachandran
Рет қаралды 1 МЛН
LinkedHashMap and LinkedHashSet in Java | Internal Working
16:58
Daily Code Buffer
Рет қаралды 23 М.
Java Memory Model in 10 minutes
10:55
Defog Tech
Рет қаралды 268 М.