Daemon thread

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MK

    Daemon thread

    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



  • Hans Kesting

    #2
    Re: Daemon thread

    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_Sta rt
    method.

    Hans Kesting


    Comment

    • MK

      #3
      Re: Daemon thread

      "Hans Kesting" <news.hansdk@sp amgourmet.comwr ote in message
      news:ePdp9RMHJH A.3640@TK2MSFTN GP04.phx.gbl...
      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_Sta rt method.
      Thanks much.
      >
      Hans Kesting
      >
      >

      Comment

      Working...