![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: Unexpected output from fork (Win32)by Jenda (Abbot) |
on Aug 09, 2004 at 16:27 UTC ( #381284=note: print w/replies, xml ) | Need Help?? |
It seems the seek point is shared, but the caches are not. Which IMHO doesn't make sense. Either the handles should be completely separate or they should share the cache. I did not mean to share the array. The main thread would read the first tenth of the computer names into an array and fork() off a child, the child would have a copy of the array and would start processing those servers. In the meantime the main thread would empty its copy of the array, read the next tenth and spawn another child. And so forth. Of course this means that you will have the complete list of computer names in memory, which may and may not be the best thing to do. Jenda
In Section
Seekers of Perl Wisdom
|
|