main loop


Also found in: Dictionary, Thesaurus, Medical.

main loop

[′mān ‚lüp]
(computer science)
A set of instructions that constitute the primary structure of a repetitive computer program.
McGraw-Hill Dictionary of Scientific & Technical Terms, 6E, Copyright © 2003 by The McGraw-Hill Companies, Inc.

main loop

(programming)
The top-level control flow construct in an input- or event-driven program, the one which receives and acts or dispatches on the program's input events.

See also driver.
This article is provided by FOLDOC - Free Online Dictionary of Computing (foldoc.org)

main loop

The primary logic in a program, which is input-process-output. In an online, interactive program, everything happens when an input occurs, such as a mouse click, mouse movement, keyboard depression or arriving network packet. The main loop takes care of this by continually testing for these inputs and calling the appropriate routines to process them. Outputs are the data on screen and updated files.

In a batch processing program where data are processed without human interaction, the main loop reads the next record and processes it. Output is often continuously updated files with summaries displayed at the end. See loop and event loop.


A Batch Processing Print Job
This example reads order records and prints invoices. After printing date and bill-to/ship-to data, the program prints a variable number of line items. The line item routine is a subloop within the main loop.
Copyright © 1981-2019 by The Computer Language Company Inc. All Rights reserved. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher.
References in periodicals archive ?
Main Loop: The main loop initializes the system, checks for motion, reads the air quality sensors, analyzes the total air quality, updates the indication LED, and sends the data to a cloud service.
This is the main loop where the new solutions are generated.
Then in the main loop of the north channel errors will be developed.
A second loop will serve Mohammed bin Zayed City and Capital City District and includes cross-platform interchanges with the main loop.
In the refrigerant main loop, a portion of subcooled liquid refrigerant from the condenser passed through a refrigerant mass flowmeter and an electronic expansion valve (EEV) and left partially evaporated.
In figure 1 is presented the main loop of adjustment for braking system with ABS, from the point of view of wheel.
Why did it all behave so neatly with the main loop sizes all 84 or 28?
The phase noise of the fixed loop that feeds the LO port of the mixer is filtered by the main loop. Integrated circuits with DDS, PLL and mixer circuitry all on the same chip are beginning to appear.
The affected property also extends east of Delta Highway and southwest of Goodpasture Island Road's main loop.
Clachan, where the Hebredian Smokehouse is based, is little more than a junction on the isle's main loop road.