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

Subscribers:
4,110
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-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-20Vue 3: Error on creation "Expected identifier but found 'import'"
2024-12-20How to do a batch of changes in about:config in Firefox?
2024-12-20Dba: Execution Plan Estimates vs Actuals with Inequality Filters
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-20How to simply generate N colors?
2024-12-20Electronics: Logic Gates with BJT-Transistors (Higher Output Voltage)
2024-12-20Where to place events in a Spring Modulith application?
2024-12-19Can r1 == 0 and r2 == 0 occur without volatile in this Java program?
2024-12-18Unix: Displaying the sed command before its execution in a Bash script
2024-12-18Electronics: RF Receiver Shuffles Data
2024-12-18Dba: Max Field from Grouped Table
2024-12-18Dba: Postgres graph query gets slow because of a nested loop join
2024-12-18Unix: Which is better when using a program that produces output to STDOUT the program's output op...
2024-12-18Unix: Fast question about -S option of ex
2024-12-18RegExp testing fails when string is validated in RegExp tools
2024-12-18Electronics: Identify module with marking 80. B
2024-12-18Why does reading a file with while ((c = getc(file)) != EOF) work on some platforms?
2024-12-18Tex: Alignment issues and inserting text in the same line