Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^12: Monitor list of threads running

by mr_p (Scribe)
on Apr 08, 2010 at 20:47 UTC ( [id://833626]=note: print w/replies, xml ) Need Help??


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

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?

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

    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'; }

        Again, going back to where we already were, you can use the following snippet:

        perl -Mthreads -e 'use lib "/ssy/nos/thread_libs/lib/";die $threads::V +ERSION'

        ... or you can output the version information from your script:

        use threads; print "Using threads.pm version $threads::VERSION\n";
      Surprising because this is what I got with RedHat 5 release.
Re^13: Monitor list of threads running
by crashtest (Curate) on Apr 08, 2010 at 21:46 UTC

    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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://833626]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-19 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found