Why aren't out of order CPUs troublesome?
问题 i've recently learned about out-of-order execution CPUs in this link https://en.wikipedia.org/wiki/Out-of-order_execution There is something that i can't quite understand. Why aren't these kind of CPUs troublesome? I mean, if i have instructions executing out of order, even if they apply to different data, wont i be able to reach a situation where data is not updated according to the program order? I mean, if i have something like: x = 1; y = 2; x = x+y; print x; print y; what prevents the