does an asynchronous thread die at the when method call ends

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

    #1

    does an asynchronous thread die at the when method call ends

    Does an asychronous thread (.beginInvoke) die when the method call ends?

    DT


  • Jakob Christensen

    #2
    RE: does an asynchronous thread die at the when method call ends

    The method invoked through BeginInvoke runs on a thread from the ThreadPool.
    When the method is done it is up to the ThreadPool to decide whether to shut
    down the thread or keep it idle for a while (see the docs for
    ThreadPool.SetM inThreads).

    HTH, Jakob.

    "Dayne" wrote:
    [color=blue]
    > Does an asychronous thread (.beginInvoke) die when the method call ends?
    >
    > DT
    >
    >
    >[/color]

    Comment

    • Joel Martinez

      #3
      Re: does an asynchronous thread die at the when method call ends

      For all intents and purposes, yes ... as soon as that method ends its
      resources are ready for garbage collection.

      Joel Martinez
      http://www.onetug.org - Orlando .NET User Group
      http://www.codecube.net - blog

      "Dayne" <d_jermaine_t@h otmail.com> wrote in message news:<Ow3T3v31E HA.1264@TK2MSFT NGP12.phx.gbl>. ..[color=blue]
      > Does an asychronous thread (.beginInvoke) die when the method call ends?
      >
      > DT[/color]

      Comment

      Working...