in reply to Re^13: Monitor list of threads running
in thread Monitor list of threads running
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'; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^15: Monitor list of threads running
by Corion (Patriarch) on Apr 09, 2010 at 15:34 UTC | |
by mr_p (Scribe) on Apr 09, 2010 at 16:13 UTC | |
by mr_p (Scribe) on Apr 09, 2010 at 17:06 UTC | |
by BrowserUk (Patriarch) on Apr 09, 2010 at 17:12 UTC | |
by mr_p (Scribe) on Apr 09, 2010 at 17:55 UTC | |
by BrowserUk (Patriarch) on Apr 09, 2010 at 18:27 UTC | |
|