title: Application_start function and IIS7 Process Model Idle time out setting
body: <p>I have a asp.net app and I have a few tasks that get called in the application start function. These tasks run is <code>while(true)</code>  and sleep for x amount of time after the computation is done. However after deploying the app I inspected the log file that is generated by these task and saw that they are running more then they should. </p>
  
  <p>In fact they run every time someone access the site after some time of inactivity.</p>
  
  <p>I was looking through the Application pool settings and saw that Process Model Idle time out is set to 20 minutes. </p>
  
  <p>Could this be causing the problem? i.e. does the application get restarted after very 20 minutes and therefore causing the application_start function to be called again ?</p>