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

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Monitor list of threads running
by Corion (Patriarch) on Apr 08, 2010 at 19:09 UTC

    See BrowserUk's answer. I'm not sure what's so hard about that answer that you chose to ignore it.

    threads->list is documented to only work for attached threads, so it's empty for you. Maybe you don't want to detach your threads at all?

      I am afraid of some failure and thread dieing...can that happen?

      What happens if I remove ->detach()?

        Seriously, maybe you want to read the threads documentation now? Maybe you want to create some test cases to see what happens when a thread dies? Also, if you're so afraid of failure, maybe you should make your program more robust so that it only erases data when it has positively been processed?

    A reply falls below the community's threshold of quality. You may see it by logging in.