Do you know where your variables are? | |
PerlMonks |
Re: Re: Re: Re: Threading: Removing an element from a shared arrayby P0w3rK!d (Pilgrim) |
on May 16, 2003 at 14:37 UTC ( [id://258659]=note: print w/replies, xml ) | Need Help?? |
Hi, Thank you for your reply. This part of the system I am working on periodically reads a directory, builds an array, and threads calls to process each file in the array. Given n number of elements in the array, I have limited the number of threads I am using so the process can send 1..$threads thread per file in given a subsets of the files. (I am trying to give each thread a unique index into the array so there are no deadlocks.) The code is something like this:
-P0w3rK!d
In Section
Seekers of Perl Wisdom
|
|