The Volatile and Synchronized Keywords in Java | Atomic Variables | Java Multithreading | Geekific

preview_player
Показать описание

In a previous video we explained and kind of drilled down the basics of threads and concurrency in a computer program. So, in this video, we take a look at how concurrency is actually implemented in Java by covering the volatile and synchronized keywords, and checking out atomic variables.

Timestamps:
00:00 Introduction
00:29 Visibility vs Atomicity
01:39 The Volatile Keyword
03:49 The Synchronized Keyword
05:20 Atomic Variables
10:58 Thanks for Watching!

If you found this video helpful, check other Geekific uploads:

#Geekific #Synchronized #Volatile #AtomicVariables #Java
Рекомендации по теме
Комментарии
Автор

This is genuinely one of the best tutorials I've seen on this topic. It seems like there are lots of very beginner resources for learning Java, and lots of really advanced content, but not much in the middle that teaches the broader concepts you need to know to get to the high level.

monkemode
Автор

I read so many articles on this, and used both in real code for years, but only after watching this video I figured out I did not understand how Volatile actually works!! This was an amazing video!

maxkolchinsky
Автор

Extremely helpful video. Great content and great explanation ! Thanks !

darshandani
Автор

I don't know but I read and watch a lot of related stuff, but somehow your voice and your video get inside my head and make it more clearer.
Thank you bro!!!!

mindcontrolkmc.
Автор

Thanks for fantastic explanation.. I have been working in IT industry past 6 years, but now only i could understood what is really these keywords. Thanks u again

sadiqc
Автор

Finally understood it! Thanks for the amazing explanation!

suyashgupta
Автор

one of the best tutorial on this topic. Thank you so much for educating us so simply and effectively.

nehajain
Автор

Thank you so much for taking the time to make such a clear and concise video on the topic. It is much appreciated!

kamikatz
Автор

Perfect place to learn about volatile, synchronized, atomic

anshumanmishra
Автор

Please make more videos on Multithreading. Thanks a lot for explaining the concepts With examples. Subscribed from my account, my brother's, father and sisters account as well☺️

swethareddy
Автор

A very good explanation. Thank you for the lesson and for the video.

JoaoLima-pqhm
Автор

Really helpful. I do have a question, at 8:40 I assume it is not needed to have idCounter as volatile when getAndIncrement() is synchronised and synchronised ensures visibility.

el
Автор

Great video! Helped me understand the differences

lisali
Автор

You have my like, Subscribe, and respect!!

hussamkd
Автор

at 8:50, shouldn't idCounter be declared static?

lucasf.v.n.
Автор

AWESOME
and perfectly clear
even for non-english and java noob speaker like me.
Thanks so much, this video should have more views indeed.

andysierra
Автор

holy shit. Your explanation is fking next level!

yaarrated
Автор

I'm glad you use the term Processor, not CPU. (Main) Memory, not RAM. I use such approach too. The terms CPU and RAM are bad.

bernaridho
Автор

doesn't the AtomicInteger have to have a static keyword still?

andrewcbuensalida