Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. Speculative
execution in computer systems is doing work, the result of which may not
be needed. This performance optimization technique is used in pipelined
processors and other systems.Modern pipelined microprocessors use
speculative execution to reduce the cost of conditional branch
instructions using schemes that predict the execution path of a program
based on the history of branch executions. It turns out that in order to
improve performance and utilization of computer resources, some
instructions have to be scheduled ahead of time in a place that is not
determined that such instructions have to be executed at all, ahead of
branch.