Re:Challenge to scientists: does your ten-year-old code stil...
by UncleMeat on Monday August 24, 2020 @02:08PM
(#24263506)
Race conditions aren't undefined behavior in C/C++. Data races are. Lots and lots of real systems contain race conditions without catastrophe.
[ Parent
| on HN ]
Re:Challenge to scientists: does your ten-year-old code stil...
by jnxx on Monday August 24, 2020 @05:40PM
(#24265848)
> Race conditions aren't undefined behavior in C/C++. Data races are.
You are right with the distinction, I had data race conditions in mind.
Race conditions can well happen in a correct C/C++ multi-threaded program in the sense that the order of specific computation steps is sometimes random. And for operations such as floating-point addition, where order of operations does matter, the exact result can be random as a consequence. But the end result should not depend dramatically on it (which is what the poster at lockdownskeptics.org claims).