Daemon thread

  • Thread starter Thread starter MK
  • Start date Start date
M

MK

I want to start a thread when the application pool is started or webserver
is started.
This thread will stay in the background and will sleep most of the time. How
would I start this thread?
Is there any server side settings that will do this?
(Just like in websphere app server settings where you can call up a servlet
during the appserver startup).

Thanks for your help.

-MK
 
MK has brought this to us :
I want to start a thread when the application pool is started or webserver is
started.
This thread will stay in the background and will sleep most of the time. How
would I start this thread?
Is there any server side settings that will do this?
(Just like in websphere app server settings where you can call up a servlet
during the appserver startup).

Thanks for your help.

-MK

You can start that thread in Global.asax, in the Application_Start
method.

Hans Kesting
 
Back
Top