Usage of delay function in the code to prevent crashes when programming an infinite loop.
<u>Explanation:
</u>
Nothing bad happens due to an infinite loop when it releases all the allocated memory before the loop ends. The issues arises when an infinite loop consumes resources inside the loop or creating a new memory allocation inside the loop. The code need to written in such a manner that when a loop does not exist in a certain time the error must be thrown to handle the infinite loop.
A UPS or Uninterruptable Power supply makes
sure that you have backup in case there is a power outage in your area. It
provides ample time for you to save all files before shut down.