in reply to Re^9: Scope of thread variable
in thread Scope of thread variable
# some code here.... for (0 ..3)) { my $thr = threads->create ( sub { worker(); } )->detach(); } # Master Thread while (1) { master(); }
How can master() function monitor the threads that were created?
I am new at threads, sorry for mis-understanding.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: Scope of thread variable
by BrowserUk (Patriarch) on Apr 08, 2010 at 18:02 UTC | |
by mr_p (Scribe) on Apr 08, 2010 at 18:13 UTC |