Can r1 == 0 and r2 == 0 occur without volatile in this Java program?
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