Nepedia
Back to Discover
Independent Reader
💻

Execution (computing)

technology Maturity 7-9 Next article →

When you run a computer program, it starts execution. This is the way a computer follows instructions. You might also hear people say they are "running" a program.

Fetch-Decode-Execute Cycle
Fetch-Decode-Execute Cycle

Most computers use a special set of steps. This is called the fetch-decode-execute cycle. First, the computer gets a step. This is the fetch stage. Next, it figures out the step. This is the decode stage. Finally, it does the step. This is the execute stage. Modern computers can even do these steps at the same time. This helps them work much faster.

Sometimes, a program has a mistake. We call this a runtime error. These errors happen while the program is running. A person might see an error message on the screen. These mistakes are often called bugs.

Fetch-Decode-Execute Cycle
Fetch-Decode-Execute Cycle

A computer can also use a virtual machine. This is a piece of software that acts like a real computer. It lets a program run in its own space. This can help a program work on many different types of computers. Some programs use an interpreter. An interpreter is software that reads and runs the code directly.

186 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (1)
File:Fetch-Decode-Execute Cycle.png
Fetch-Decode-Execute Cycle.png
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.