Professional Web Applications Themes

is this possible? - ASP.NET General

Not sure if what i want to do will work. If i start a new thread in the Application_Start event is there a risk that that thread will be forced to stop? If no user uses my site for a while (all session's time out) i understand the application stops until another user comes to the site. if my thread is doing something will it be forced to stop or will the Application stop after the thread is done. What i am thinking of doing is populating a Search Catalogue when the application starts. Is this feasible?...

  1. #1

    Default is this possible?

    Not sure if what i want to do will work.



    If i start a new thread in the Application_Start event is there a risk that
    that thread will be forced to stop? If no user uses my site for a while
    (all session's time out) i understand the application stops until another
    user comes to the site. if my thread is doing something will it be forced
    to stop or will the Application stop after the thread is done.


    What i am thinking of doing is populating a Search Catalogue when the
    application starts. Is this feasible?


    Arran Guest

  2. Moderated Post

    Default Re: is this possible?

    Removed by Administrator
    Frank Guest
    Moderated Post

  3. #3

    Default Re: is this possible?

    Hi,

    Frank is right. just for the discussion the thread will be terminate if
    the application stop or the application will wait for the thread to stop
    depends on IsBackground property of the thread and if the thread is part
    of the aspnet_process or web aplication appDomain. If the thread is
    background it will be terminate when the process terminate if not the
    process won’t terminate until the thread terminate. But the interesting
    stuff is if the thread associated with appDomain of the web application
    or with aspnet_wp process. If the thread maintained by the aspnet_wp
    then it won’t terminate until the process terminate, regardless to the
    web application state.

    Natty Gur, CTO
    Dao2Com Ltd.
    34th Elkalay st. Raanana
    Israel , 43000
    Phone Numbers:
    Office: +972-(0)9-7740261
    Fax: +972-(0)9-7740261
    Mobile: +972-(0)58-888377


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    Natty Guest

  4. #4

    Default Re: is this possible?

    thanks for the info.

    Yeah thought it might be a bit dodgy. I will probably just write a windows
    service or something to do it.

    cheers

    Arran


    "Arran Pearce" <ac.uk> wrote in message
    news:%phx.gbl... 
    that 


    Arran Guest

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139