1

There is an ASP.NET Web App , some of it's modules are implemented by threads(C#).

When the threads are running , What does it result to if IIS Process Recycled ?

WangHu
  • 11
  • 1
  • 4

1 Answers1

4

Your app domain will be unloaded, all threads will stop. You will have to handle this case with appropriate Application_Start and Application_End handlers.

Also see: "ASP.NET Application Life Cycle Overview"

BrokenGlass
  • 158,293
  • 28
  • 286
  • 335
  • Thanks @BrokenGlass , but Do you mean the threads lose(never found) – WangHu Mar 22 '12 at 01:51
  • 1
    the threads will be aborted - it's not a good idea to have long running background operations in ASP.NET, consider moving this into a separate windows service – BrokenGlass Mar 22 '12 at 02:05