Infinite Loop

What Does Infinite Loop Mean?

An infinite loop is an instruction sequence that loops endlessly when a terminating condition has not been set, cannot occur, and/or causes the loop to restart before it ends.

Advertisements

An infinite loop is also known as an endless loop.

Techopedia Explains Infinite Loop

There are times when a programmer intentionally creates an infinite loop. For example, any form object can wait indefinitely for a user action. When an exit condition is not included within the main loop, the loop runs until the application is exited. In this case, the entire form thread is forced to end programmatically. The term infinite loop is only used in situations where the loop condition is not purposely set. These situations occur most commonly with new developers.

Advertisements

Related Terms

Latest Programming Languages Terms

Related Reading

Margaret Rouse

Margaret Rouse is an award-winning technical writer and teacher known for her ability to explain complex technical subjects to a non-technical, business audience. Over the past twenty years her explanations have appeared on TechTarget websites and she's been cited as an authority in articles by the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine and Discovery Magazine.Margaret's idea of a fun day is helping IT and business professionals learn to speak each other’s highly specialized languages. If you have a suggestion for a new definition or how to improve a technical explanation, please email Margaret or contact her…