threads - Re: is_running is returning true when thread is killed externally.

Posted on Wed May 30 18:22:22 2007 by jdhedden in response to 5271 (See the whole thread of 2)
Re: is_running is returning true when thread is killed externally.
> I have found that if I kill the thread externally
> (I used process explorer)

Eew! Yuck! Bad programmer! No cookie!

From 'perldoc perlthrtut':
What kind of threads are Perl threads? If you have experience with other thread implementations, you might find that things aren't quite what you expect. It's very important to remember when dealing with Perl threads that *Perl Threads Are Not X Threads* for all values of X. They aren't POSIX threads, or DecThreads, or Java's Green threads, or Win32 threads. There are similarities, and the broad concepts are the same, but if you start looking for implementation details you're going to be either disappointed or confused. Possibly both.
> the $thr->is_running still returns true

Since you mucked with Perl's threads externally, you compromised Perl's ability to track its threads' status.
Write a response