Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
One thing I can think of would be to use the Windows API to suspend and/or kill your threads via their threads->pid, I guess you meant threads->tid. Even so, that wouldn't work as the thread id it returns is a Perl-internal id, not anything the OS would recognise. However, the cpan version of the threads module does export threads->_handle which could be used in conjunction with Win32::API to Terminate a thread, but like you, I would strongly warn against designing code to use this. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In reply to Re^2: how to kill a thread in windows
by BrowserUk
|
|