Core Java With OCJP/SCJP: Concurrent Collections Part-4 || ConcurrentHashMap Details

preview_player
Показать описание
java
Basic Java Tutorial for beginners
Basic Java Programming for beginners
Core Java By Durga Sir
Core Java
Core Java Video Tutorials
Core Java Tutorial for beginners with examples
Core Java Tutorial
Core Java DURGASOFT
Durgasoft Core Java
Durgasoft Java
durga software solutions core java videos
durga software solutions java
How to learn java
How to learn java programming language for beginners
learn java
learn java programming for beginners
programming in java
understanding java
java application development tutorial
java beginner tutorial
java basics for beginners
java for beginners
java lessons
java lectures
java language tutorial for beginners
java programming tutorial
java programming for beginners
java tutorial for beginners
java tutorial
java tutorial by durga sir
====================================
Java tutorial by durga sir

Java 9 by durga sir

Java 1.8 Version New Features by Durga sir

Adv Java JDBC Tutorial by Durga sir

OCJA 1.8 Java SE 8 Programmer - I (1Z0 - 808 ) By Durga sir

Core Java by NagoorBabu sir

Advenced Java by Nagoorbabu sir

CoreJava by Ratan

Advanced Java jdbc by Ratan

Advjava tutorials - JSP by Ratan

Adv java servlets tutorial by ratan

Servlet and JSP Tutorial by anji reddy

Advanced Java Jdbc by Anjireddy

Hibernate byAnjireddy

Struts by Anjireddy

Spring by Mr.AnjiReddy

ADV JAVA by Naveen

Spring by Mr.Naveen

Hibernate by Mr. Naveen

Struts by Mr.Naveen
Рекомендации по теме
Комментарии
Автор

HashMap vs HashTable vs ConcurrentHashMap - 01:35 - 10:35
internal of ConcurrentHashMap - 14:05(check content of board)
constructors of ConcurrentHashMap - 16:40 - 18:35

prakherjindal
Автор

Whenever i search for a topic many times your tutorial got in search, I never watched. But recently I made your videos prioritized 1st. Your giving indetail explaination for every topic. Thank you..

kartheekgoud
Автор

Next level teaching ❤️ sir hats off literally i got frustrated due to surfing on internet about concurrent but i saw this video i stop solution i got Thankyou ✅️

sanketkhose
Автор

I am a former student of Durga sir and am working now for a Big 4 Giant IT company . The way he teaches the basics cannot be taught by any java language developer who are working in Oracle or take any faculty or R&D guy. This is the simplest form of java food available on planet earth . Have it while you have time. Kudos sir !!!

ryan-boxi
Автор

Thanks sir, you are really GOD of Java.

omnamahshivaya
Автор

Excellently explained to core important basic concepts in depth with clear UNDERSTANDING, keep posting such important topic videos Durga Sir, Appreciate in deed.

DivuSiddhu
Автор

Thanks Sir, today I got the clear understanding on the ConcurrentHashMap to some extent.

dkk
Автор

Incorrect information at 10:00 - When concurrencyLevel is greater than intialCapacity. it is not that every bucket has two lock, rather intialCapacity is made equal to concurrencyLevel.
below is the source code which does this.

if (initialCapacity < concurrencyLevel) // Use at least as many bins
initialCapacity = concurrencyLevel; // as estimated threads

That means concurrencyLevel can never be greater than intialCapacity. It will always be less than or equal to intialCapacity.

narendrakjha
Автор

very clear explanation sir.I was searching for other websites for clear understanding but i couldn't get it.Here in this video your explanation about the topic is excellent sir.

karthikch
Автор

thank you so much durga sir for your tutorials ... your tutorials are very valuable

persistencej
Автор

i never ever seen a person teaches like u sir 💯

saravanaraj
Автор

Completed watching on Oct 13, 2024 at 12.42 AM

ranveervaghela
Автор

Awesome explanation...thank u so much Sir

priyankatiwari-lygf
Автор

ConcurrentHashMap initial capacity is 16
Fill ratio is 0.75
Concurrency level is 16❤

EngineerVaibhav
Автор

You explained ConcurrentHashMap very well. Thank you sir.

yugalchaudhari
Автор

Note that in Java 8 we don't have segment locking or concurrency level. In Java 8, each hash bucket can get updated individually, so as long as there are no hash collisions, there can be as many concurrent updates as its current capacity.

haykmkrtchyan
Автор

What will happen if one thread is reading from a particular bucket and other thread is updating the same bucket? Is it even possible? Will the latest value be available for read operation?

amitkumargupta
Автор

Very good explanation sir, but I have doubt on load factor because in documentation "loadFactor: the load factor (table density) for establishing the initial table size".
when I pass any argument as load factor then it is used to calculate size of array to store elements,
public ConcurrentHashMap(int initialCapacity, float loadFactor, int concurrencyLevel)
{
if (!(loadFactor > 0.0f) || initialCapacity < 0 || concurrencyLevel <= 0)
throw new IllegalArgumentException();
if (initialCapacity < concurrencyLevel) // Use at least as many bins
initialCapacity = concurrencyLevel; // as estimated threads
long size = (long)(1.0 + (long)initialCapacity / loadFactor);
int cap = (size >= (long)MAXIMUM_CAPACITY) ? MAXIMUM_CAPACITY : tableSizeFor((int)size);
this.sizeCtl = cap;
}
If I pass load factor as 0.5 then also it resizes table after filling it 75% not after 50%.
I am using java 8, please help me to understand it.

chetankhandave
Автор

Hello sir, Why can't you start teaching SpringBoot...it will be very helpful for us🙃🥲

SHIVASAIAKULA-ty
Автор

Can in one segment update operation perform parralely or not ?

samadhanjadhav