Java ConcurrentMap and ConcurrentHashMap

preview_player
Показать описание
The Java ConcurrentMap and its implementation ConcurrentHashMap represents a Java Map that provides better concurrency than the Java Hashtable class.

The Hashtable class only allows 1 thread at a time to call any of its methods.

The ConcurrentHashMap allows multiple threads to call its methods in several cases. First of all, more than one thread are allowed to read from the ConcurrentHashMap at the same time. Second, more than one thread are allowed to write to the ConcurrentHashMap if they do not write to the same keys (and possibly only if the key + value pairs they insert land in different buckets internally).

Java ConcurrentMap + ConcurrentHashMap tutorial - Text:

Java Concurrency tutorial - Text:

Java Concurrency tutorial - video playlist:

Java Map tutorial - Text:

Java Map tutorial - video:

Java Lambda Expression tutorial - text:

Java Lambda Expression tutorial - video playlist:
Рекомендации по теме
Комментарии
Автор

Thanks Jakob, great stuff as always!
Hoping at some point you'll publish a book with your Java knowledge

dekc_truje
Автор

Hello Jakob! Awesome concurrency series! I watched all and they are outstanding. One specific case I wish you can record a video is the case of the concurrent bank account, which uses then ReadWriteLock type. I know how to work with ReadWriteLock but of course, you explain so well that I recommend you record it :).

marcosFA
Автор

Great video jakob. Thanks
I am looking for a job and need some project to work upon to showcase in the interview. Can you suggest a good project to work upon which can impress the interviewers. My tech stack is java spring boot

umairalvi