1. Home
  2. Computing & Technology
  3. C / C++ / C#

Definition of Branch Prediction

By David Bolton, About.com

Definition: In a CPU, part of the processor tries and fetches instructions from memory before they are needed as otherwise the CPU has to wait for the instruction. This is called pre-fetching and the instructions are held in an instruction pipeline.

If a branch occurs then the pipeline has to be refilled and branch prediction attempts to work out if the branch will be taken and start fetching instructions.

Glossary:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Examples:
Processors with long pipelines need careful optimization by branch predictors to minimize the occasions when a branch occurs.
Explore C / C++ / C#
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. C / C++ / C#

©2009 About.com, a part of The New York Times Company.

All rights reserved.