Awesome video, Will! I can see why people get the atomic keyword and volatile keyword confused. You explained everything so clearly, and also explained more insights in how to handle multithreaded code vs single threaded code.
Thank you so much! For the valuable information and examples.
great explanation!! make a series on concurrency and multithreading. Thanks!!
Very good examples. Thank you very much for sharing
Nice!! This was a concise quick reference. Thanks a ton!
Great video with examples. I would like to ask one question in volatile example where you are adding while(!done) i have added a print statement inside for eg: while(!done) {system.out.println("wait check in progress");} then the program is not in the infinite loop anymore ? I understand while(!done) is a busy wait keep on checking and wonder why adding an body changes the behaviour while not adding proper fix of volatile keyword. Thanks
This is good stuff, thank you for your content
Great explanation!
Great video. Regarding 9:45, because it's an object reference then it's not cached by the thread? Is it always reading from the heap (or L3 perhaps)?
if we have 2 threads I expected to see the logs twice, why it print it only once?
Can you share the code samples in gists?
@jaylordjl6337