3 ms·
> Imagine if the instructions in one of your program threads were not guaranteed to be executed in order. Modern CPUs do not process instructions in the same o
by gioele 12y ago
> Imagine if the instructions in one of your program threads were not guaranteed to be executed in order.
Modern CPUs do not process instructions in the same order they are stored in memory. Out-of-order CPUs rely on the implicit order created by the dependency between instructions and operands.
As in the Lamport paper, the order in which the instruction are performed is meant to preserve the order in which the effects are produced instead of the order in which the commands are given.