: - C C++ C C++, , - UB ( ), , . , C C++ ( ).
: ( , , UB).
, . while (!ready); , : "".
"" "" , : , , , , ( ) , , . , . , , .
Thanks to multithreading, you can perform operations with memory that are not in the past of others , and you cannot know what they will observe if they try to use objects that are manipulated in the past.
source
share