The term "infinite loop" is most often used for a loop in a program that would not be interrupted if there were no external actions that could stop it. In most cases, using any interrupt key to send an interrupt signal to the operating system proves that in the end it was not an infinite loop. And often power loss or power outage will do the same. And on some platforms with some operating systems, other interrupt signals may occur and stop the process.
Thus, pseudo-infinite loops are useful for processes that you do not want to terminate, with the exception of some βexternalβ influence.
source share