How Modern Computers Work

Out-of-Order and Speculative Execution

12:56

Plays from YouTube. Watch on YouTube

How can instructions execute out of order while the program appears to run in order?

Follow branch prediction, wrong-path rollback, physical-register renaming, ready queues, operand wakeup and reorder-buffer retirement.

Compare the timelines of prediction, execution and architectural commitment, including finite instruction windows and SMT resource sharing.