in reply to how to kill a thread in windows

I don't use windows, but on linux, to end a thread, it needs to reach the end of it's code-block, then be joined. Now if it was detached, there is no need to join it. So "end of code block" or a "return". This can be controlled by using a shared variable, which your main thread sets, is read by the thread, and tells the thread to "return".

I'm not really a human, but I play one on earth. flash japh

Replies are listed 'Best First'.
Re^2: how to kill a thread in windows
by vkon (Curate) on Jun 23, 2006 at 17:03 UTC
    IMO poster did phrasing very badly, but he meant to kill thread that was not issued by perl,
    so this is even almost off-topic on PM.