in reply to Re^10: Monitor list of threads running
in thread Monitor list of threads running

You can find out the currently released version of a module by searching it on CPAN. I'll link to the threads documentation for you.

Replies are listed 'Best First'.
Re^12: Monitor list of threads running
by mr_p (Scribe) on Apr 08, 2010 at 20:47 UTC
    1.07 is the version that is deployed with v5.8.8, I am surprised it is not close to up to date.

    Can I compile it locally as a separate library and deploy. Or I have to install it as root to the machine that is deployed?

      Why are you surprised? Perl 5.8.8 was released in 2006 on Februar the 1st. This was four years ago, and despite claims to the contrary, Perl development has not stalled since then.

      Maybe now is a good time to do your own research instead of asking us to quote documentation or information found on the internet for you. Please read up on Yes, even you can use CPAN and A Guide to Installing Modules. Also see local::lib for a supposedly convenient way to maintain a local directory for your own modules without needing root or your own Perl installation.

        I also wanted to say thanks for all your and everyones help from this site.
        Hi Corion

        I installed this latest threads into a directory and wrote following code and still get this error message?

        Can't locate auto/threads/is_running.al in @INC (@INC contains: /nss/nfx/thread_libs/lib/ ....

        Would you know why? Is there a way I can tell what version of threads package it is using?

        #!/usr/bin/perl use lib "/ssy/nos/thread_libs/lib/"; use threads; my @threads; for (0 ..3) { my $thr = threads->create( sub { sleep 2; } ); $thr->detach(); push @threads, $thr; } # then later for my $thr ( @threads ) { print 'Thread ', $thr->tid, $thr->is_running() ? ' is running' : ' + is not running'; }
        Surprising because this is what I got with RedHat 5 release.

      perl 5.8.8 was released on January 31, 2006. That's over four years ago, making it at a minimum "quite old" in my book. And in light of the active development of threads, I'd say it's appropriate at this point to call 1.07 "ancient".

      In fact, check out the change log for threads - 1.07 isn't even listed in there anymore!

        Wow...that is old...I was only surprised that RedHat deployed this with RedHat 5.