[svlug] Running a command n times simutaneously

Robert Hajime Lanning lanning at lanning.cc
Tue Apr 25 15:30:09 PDT 2006


<quote who="Joe Buck">
> But that doesn't provide a clean way of timing when the processes have
> all completed.
>
> You can write a Perl script to manage the multiple processes.  The
> three magic commands you need are "fork", "exec", and "wait".
>

I wrote this a few years ago to demonstrate controled forking in
perl.  And yes, there is a race condition in it.

http://lanning.cc/concurrentdemo.pl

-- 
And, did Guloka think the Ulus were too ugly to save?
                                         -Centauri





More information about the svlug mailing list