释义 |
infinite loop
n. | 1. | (Computers) a series of instructions in a computer program which, when executed, cause a cyclic repetition of the same instructions, with no other action by the program, for as long as the program continues to be executed, or the loop is interrupted by some external action. |
infinite loop
infinite loop (programming)(Or "endless loop") Where a piece of program isexecuted repeatedly with no hope of stopping. This is nearlyalways because of a bug, e.g. if the condition for exitingthe loop is wrong, though it may be intentional if the programis controlling an embedded system which is supposed to runcontinuously until it is turned off. The programmer may alsointend the program to run until interrupted by the user. Anendless loop may also be used as a last-resort error handlerwhen no other action is appropriate. This is used in someoperating system kernels following a panic.
A program executing an infinite loop is said to spin orbuzz forever and goes catatonic. The program is "woundaround the axle".
A standard joke has been made about each generation's exemplarof the ultra-fast machine: "The Cray-3 is so fast it canexecute an infinite loop in under 2 seconds!"
See also black hole, recursion, infinite loop.infinite loopA series of instructions in a program that are constantly repeated. Also called an "endless loop," it may be intentional such as a never-ending demo on screen, or it may be a bug. Due to erroneous program logic, the computer is directed to instructions that keep pointing back to the start of a routine without any way of branching out. It commonly occurs when a programmer expects certain results from a compare instruction and all possible outcomes are not evaluated properly. See abend and bug.
Apple Inc., 1 Infinite Loop To imply the never-ending creation of products, Apple's headquarters are located at 1 Infinite Loop in Cupertino, California.MedicalSeebugFinancialSeeAbend |