Look Up Another Term

Redirected from: main line

Definition: main loop


The primary logic in a program. A program is essentially an input-process-output architecture, and everything happens when there is an input, such as a mouse click, mouse movement, keyboard depression or an arriving network packet. The main loop takes care of this by continually testing for these inputs and calling the appropriate routines to process them. See loop and event loop.