It is better to assume that the CPU worked longer?
Lucio answered on June 14th 19 at 19:00
Yes, anything, even an empty cycle - main iterations for more. And disable the optimization options, and the compiler may remove the loop from the executable file.
Alize_Moen answered on June 14th 19 at 19:02
a|1=a^a=a*a*a*a*a...=a+a+a+a+a...=a++;a + a;++a;a++;...
And then try to calculate 123546789/1
Kyleigh_Hills answered on June 14th 19 at 19:04
Time to interrupt the idle loop.
owen.Block answered on June 14th 19 at 19:06
all these mathematical operations in loops are very well optimized by the hardware, even if you disable optimization in the compiler.
therefore, the most expensive operation - is not predictable, the conditional transition from random data fits perfectly under it, the processor will not be able to accurately predict this conditional branch.
well, blocking operations are emulated just slips.