bdimych has asked for the wisdom of the Perl Monks concerning the following question:
Hi All
Whether it is possible to determine that thread is finished not using additional variables through threads::shared
Thanks and !!! HAPPY NEW YEAR !!!use threads; my $thread = async {sleep 10; print "Ok\n"}; my $i = 0; while (1) { $i++; print "$i - $thread\n"; if (??????? $thread finished ??????) {last}; sleep 1; };
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Win32 ActiveState Perl 5.8 - use threads
by BrowserUk (Patriarch) on Jan 03, 2005 at 12:31 UTC | |
Re: Win32 ActiveState Perl 5.8 - use threads
by ambrus (Abbot) on Jan 03, 2005 at 09:36 UTC | |
Re: Win32 ActiveState Perl 5.8 - use threads
by zentara (Archbishop) on Jan 03, 2005 at 14:40 UTC |
Back to
Seekers of Perl Wisdom