Front page | perl.dbi.users |
Postings from August 2006
RE: Help with my perl script
Thread Previous
|
Thread Next
From:
Rutherdale, Will
Date:
August 23, 2006 14:59
Subject:
RE: Help with my perl script
Message ID:
7B8C821E108976489746D62B099CC397097C16@SACATOREXCH01.corp.sa.net
Cute, about the rabbits. :-)
-Will
> -----Original Message-----
> From: David Nicol [mailto:davidnicol@gmail.com]
> Sent: Wednesday 23 August 2006 17:28
> To: Rutherdale, Will
> Cc: dbi-users@perl.org
> Subject: Re: Help with my perl script
>
>
> On 8/23/06, Rutherdale, Will <Will.Rutherdale@sciatl.com> 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
>
- - - - - Appended by Scientific Atlanta, a Cisco company - - - - - This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.
Thread Previous
|
Thread Next