Can r1 == 0 and r2 == 0 occur without volatile in this Java program?

Subscribers:
4,440
Published on ● Video Link: https://www.youtube.com/watch?v=KS7ZrVLMc2s



Duration: 0:00
0 views
0


Can r1 == 0 and r2 == 0 occur without volatile in this Java program?
I hope you found a solution that worked for you :)
The Content is licensed under (https://meta.stackexchange.com/help/licensing) CC BY-SA.
Attention! This video does always use the same license as the source!
Thanks to all those great people for their contributions!

(stackoverflow.com/users/1862286/yaskovdev)yaskovdev
(stackoverflow.com/users/5646962/thomas-kl%c3%a4ger)Thomas Kläger
A special thanks goes out to the (stackoverflow.com/questions/79288845/can-r1-0-and-r2-0-occur-without-volatile-in-this-java-program)Stackexchange community

I wish you all a wonderful day! Stay safe :)
If anything is off, please write me at peter D.O.T schneider A.T ois42.de

java java-memory-model jls




Other Videos By Peter Schneider


2024-12-20Unix: Purge an older VirtualBox (7.0) config. Will the current version (7.1) not to be affected?
2024-12-20Salesforce: Pull in Contact fields from single Opportunity Query
2024-12-20Is there a NumPy magic to generate this array?
2024-12-20How should I parse times in the Japanese "30-hour" format for data analysis?
2024-12-20Is explicit specialization of a class template via a using alias supposed to work?
2024-12-20Dba: Forcing postgres planner to prioritize simpler queries over computationally heavy ones
2024-12-20Electronics: Sine-wave difference between LC and RC filter on oscilloscope smoothness
2024-12-20Codereview: Custom implementation of std::unique_ptrT
2024-12-20How to simply generate N colors?
2024-12-20Electronics: Logic Gates with BJT-Transistors (Higher Output Voltage)
2024-12-19Can r1 == 0 and r2 == 0 occur without volatile in this Java program?
2024-12-18Gis: How to filter an aggregation query properly
2024-12-18Clarification on Apple Push Notification Service Server Certificate Update (for Firebase)
2024-12-18Is std::function deprecated by std::copyable_function in C++26?
2024-12-18Electronics: Why is the frequency of LC oscillator different from the calculations?
2024-12-18Bitcoin: What happens to miner's fees when a Bitcoin transaction is rejected?
2024-12-18Unix: Fast question about -S option of ex
2024-12-18Which part of the C++ standard forbids destroying an object twice?
2024-12-18Tex: cumulative sum via foreach: how to avoid xdef?
2024-12-18Electronics: Ideal diode circuit resistor ratio
2024-12-18Codereview: polymorphic message container