in reply to Re^2: Monitor list of threads running
in thread Monitor list of threads running
So, maybe you want to do something with $thr, then, if you want to monitor the newly created thread? The threads documentation lists various uses for the return value of ->create(). Maybe now is a good time to read that documentation and look for these uses.
Also, again, maybe you really don't want to ->detach threads but to just keep them around and ->join them. Just feed them from a Thread::Queue and wait until they have all finished as all work has been done. But then, I'm sure that approach has already been shown to you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Monitor list of threads running
by mr_p (Scribe) on Apr 08, 2010 at 19:29 UTC | |
by Corion (Patriarch) on Apr 08, 2010 at 19:48 UTC |