Results 1 to 5 of 5

Thread: [RESOLVED] [2005] Threading in asp.net

  1. #1

    Thread Starter
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092

    Resolved [RESOLVED] [2005] Threading in asp.net

    I've never really done much threading in asp.net or otherwise and so have a few questions...

    I have a long process that needs to fire after a user enters some info. The page should then tell them that their data is being analysed and they and their collegues will be informed by email when the results are complete.

    So if i start this long process (max 10 mins) in a seperate thread is there any user action the user can do to stop the thread completing?

    What happens to threads after they have completed (in term of system resources etc)?

    Cheers.

  2. #2
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861

    Re: [2005] Threading in asp.net

    1) No
    2) A thread is returned back to the thread pool when it has completed its task.
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005] Threading in asp.net

    For #1, it depends. If you have a loop in your thread which runs many times, you could perform a check for a session variable at the start of each loop, and if it has a value of say "false" or "stop", then you exit the method.

    #2, what he said.

  4. #4

    Thread Starter
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092

    Re: [2005] Threading in asp.net

    Quote Originally Posted by mendhak
    For #1, it depends. If you have a loop in your thread which runs many times, you could perform a check for a session variable at the start of each loop, and if it has a value of say "false" or "stop", then you exit the method.
    That's ok I don't want to stop the thread just wanted to make sure that the user couldn't screw it up in anyway (apart from physically attacking the server etc).

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [RESOLVED] [2005] Threading in asp.net

    Or using scissors.

Posting Permissions

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



Click Here to Expand Forum to Full Width