karthick has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,

I am kinda of new to threading in perl.I need to know how to keep in track number of currently running thread. Is there anyway i can do it.

Replies are listed 'Best First'.
Re: Thread Tracking.
by Corion (Patriarch) on Apr 12, 2010 at 10:30 UTC

    Have you read the threads documentation? Because there it says:

    my $thread_count = threads->list();
      However, if you have detached any threads, you won't know about them using this function.

        If you still care about your threads, why are you detaching them?