2022 CPU (Central Processing Unit) Detailed Guide Part 2
How does the CPU work? The CPU can execute millions of instructions per second, but only one instruction at a time. It first receives some type of input from an application/system software program (such as a web browser or operating system) or from memory, usually from an input device (such as a monitor display, keyboard, mouse, or microphone). It is then responsible for four tasks: acquisition, decoding, execution, and storage. (This will be described in more detail in the next section. Finally, there is some kind of output, such as printing something to the screen. This process is called the acquire-execute cycle and occurs millions of times per second. What are the main tasks of the CPU? Let’s take a look at the four main tasks of the CPU. Fetching includes getting instructions from memory, so the CPU knows how to process the input and knows the corresponding instructions for the particular input data it receives. Specifically, it looks up the address of the corresponding ins...