Runtime refers to the period when a program is running, beginning when the program is executed and ending when the program is closed. This encompasses all the activities from the program’s execution to its termination, much like a play being performed live on stage from start to finish.