Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7857515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:04:00+00:00 2026-06-02T21:04:00+00:00

A small doubt I have an application(exe) running in infinite loop, how long it

  • 0

A small doubt
I have an application(exe) running in infinite loop, how long it executes.. I mean does it executes for years if my system is ON. or is there any timing limit for an application to run.

(If this is not correct place for this question please point me to the correct reference)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T21:04:01+00:00Added an answer on June 2, 2026 at 9:04 pm

    If you application is running in an infinite loop, i.e.

    while(1)
    {
      //...
    }
    

    It will stop if an error is encountered and not handled correctly by your code, but otherwise it should run indefinitely.

    It will terminate if there is an operating system related signal to kill the process. This may come from a user manually trying to kill the process, or it might occur because of a general memory shortage on the system. These types of operating system signal are generally out of your control. However, you can implement a method to detect if your process has been terminated (perhaps by using a daughter process) that will restart/resume the process should it be terminated unexpectedly.

    If you add the process(es) to the startup script of your operating system, then you are also covered even in the event of a power failure or other type of event that may cause a reboot.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Am Beginner to java.I have a small doubt while i am developing an application
I have a small doubt in CCAnimation. Is there any difference between the code1
I have a small doubt, so apologies first. I am creating an iPhone application
Hi am developing android application. I have some small doubt of how to change
I have small doubt in python. x = '' if x: print 'y' so,
I have a small architecture doubt about organizing code in separate functional units (most
A small - little question. I have seen many application having buttons like following.
I have an ASP.Net application running under IIS 6. A simple page has two
I have a small doubt I have following code bool res= false; if(cond1) {
I have a small doubt regarding network connection procedure in Android. My scenario is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.