develooper Front page | perl.ithreads | Postings from November 2003

How to check if a thread is alive?

Thread Next
From:
EastInspection USA
Date:
November 18, 2003 02:03
Subject:
How to check if a thread is alive?
Hi there,

In my program, one thread runs into a "die" statement, but when I use
threads->list to get a list of thread ids, the "dead" thread is still there.
How come?

The thread is not a detached thread.

version 5.8.0.
screen output:
thread failed to start: Tread(jade): simulated die. at poll.pl line 242.

Thanks.
J.



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About