Killing a thread

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

    #1

    Killing a thread

    When I'm done using a thread, do I do Abort or do nothing and the run time
    will kill it for me?
    also, can I call Join a thread after I call Abort on that same thread?


  • Chris Capel

    #2
    Re: Killing a thread

    A thread ends itself when the function it started in returns. You probably
    shouldn't kill it from another thread; you could set an exit flag that the
    thread checks periodically.

    Chris

    "Hasani" <HJB417@hotmail .c0m> wrote in message
    news:R_YRa.2968 4$GF2.7981478@t wister.nyc.rr.c om...[color=blue]
    > When I'm done using a thread, do I do Abort or do nothing and the run time
    > will kill it for me?
    > also, can I call Join a thread after I call Abort on that same thread?
    >
    >[/color]


    Comment

    Working...