Runtime

Runtime refers to the time a program runs on a computer or device. During runtime, the computer's CPU executes the commands in the program's machine code. It starts when you first open a program and the operating system loads it into RAM, along with any extra libraries or external frameworks the program calls for. The runtime ends when you close or quit the program, and the memory allocated to it becomes available for other programs.

In a software development context, the word "runtime" also refers to the environment a software developer designs a program to run within. The runtime environment consists of the operating system and linked code libraries. For example, programs that run in Windows make calls to dynamically linked library files (DLLs) to execute various standard functions. The runtime environment may also include virtual machines or interpreter programs necessary for the program to run.

A runtime error is an error, or bug, that happens while the program is running. The term differentiates these errors from errors that occur while the program is compiling, like syntax errors and other compilation errors.

Updated April 6, 2023 by Brian P.

quizTest Your Knowledge

In what decade was the C programming language developed?

A
1970s
0%
B
1980s
0%
C
1990s
0%
D
2000s
0%
Correct! Incorrect!     View the C definition.
More Quizzes →

The Tech Terms Computer Dictionary

The definition of Runtime on this page is an original definition written by the TechTerms.com team. If you would like to reference this page or cite this definition, please use the green citation links above.

The goal of TechTerms.com is to explain computer terminology in a way that is easy to understand. We strive for simplicity and accuracy with every definition we publish. If you have feedback about this definition or would like to suggest a new technical term, please contact us.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email.

Questions? Please contact us.