On 8/23/06, Rutherdale, Will <[EMAIL PROTECTED]> wrote:
Again, I recommend simply using fork(), in a loop.
a rabbit doesn't need a loop...
$start_time = time + 10;
... # one process
fork; # two here
fork; # four here
fork; # eight here
fork; # 16
fork; # 32
fork; # 64
fork; # 128 here
fork; # 256 here, load on something is high :)
# fork; # 512 , etc
# and whatever happens here will happen 256 times, in parallel,
# or at least as parallel as your OS can give you
select(undef,undef,undef,0.003) while(time < $start_time); #
wait for trigger
... # connect and crash server
--
David L Nicol
Dickenson on the flag
http://cronos.advenge.com/pc/EmilyDickenson/SecondBook/p39.html