Hi Kai, > Commenting out line number 1435: > # sleep 1 if (children_number() >= $QuantityToBuild); > gives: > > sw> time build.pl -P2 > ... > Multiprocessing build is finished > Maximal number of processes run: 2 > 4.564u 1.088s 0:06.60 85.4% 0+0k 0+0io 0pf+0w > > which is near to the single process case. > > I think I understand the purpose of the "sleep 1", actually to wait for > forked processes to terminate, though I think that a "sleep" is not the > best solution and I would vote for something like a "waitpid" or similar.
I wanted to implement the same algorithm for all platforms. But you're right - the line is only for Windows necessary... I'll fix it in the next update... Regards, Vladimir --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
