by wpollock · 1y ago · 0 comments
Is the always true? What with piplining, branch prediction, and maybe asymmetrical NUMA , isn't out of order instructions possible? If so, don't you still need locks or memory barriers to ensure safety?
(I am most definitely not an expert, just curious.)
For example, an Intel CPU won't reorder `x += 1` and `x *= 2`.