archer has asked for the wisdom of the Perl Monks concerning the following question:
Kindly provide ur ideas and help me resolve this issue.use threads; use threads::shared; my @threads; for(my $index = 0; $index < scalar(@input_files); $index++) { push(@threads, threads->new(\&doProcessing, $input,$output)); + #$input and $output are the contents of input and output files } my @ReturnData; foreach my $thread (@threads) { push(@ReturnData,$thread->join()); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Free to wrong pool error while using thread
by BrowserUk (Patriarch) on Apr 05, 2012 at 05:43 UTC | |
|
Re: Free to wrong pool error while using thread
by dave_the_m (Monsignor) on Apr 05, 2012 at 15:28 UTC | |
|
Re: Free to wrong pool error while using thread
by Anonymous Monk on Apr 05, 2012 at 18:56 UTC |