in reply to muliple request with fork

forking 3 diffrent request will not speed up the overall running time (unless you have a ultra fast network, in which case the hitting links sepratly will also be fast), as the speed will be dependent on your network speed. If you hit links in parallel, you are dividing your bandwith for these requests.

Replies are listed 'Best First'.
Re^2: muliple request with fork
by almut (Canon) on Dec 10, 2009 at 14:18 UTC
    forking 3 diffrent request will not speed up

    ...but it could reduce the overall time taken, in case the servers are responding slowly (think of requests to perlmonks.org :)  or the server side has limited bandwidth...

Re^2: muliple request with fork
by moritz (Cardinal) on Dec 10, 2009 at 15:09 UTC

    There are two different things to consider: bandwidth and latency.

    Parallel requests don't help anything when it comes to (your own) bandwidth, but since the latency of the requests happens during the same time, the overall run time can still decrease.

    For large files the bandwidth is more important, for small files the latency.

    Perl 6 - links to (nearly) everything that is Perl 6.
Re^2: muliple request with fork
by RedGrinGo (Novice) on Dec 10, 2009 at 14:14 UTC

    Hey nice!!!

    Didn't thought about this one, so what you are saying that it doesn't matter if i make the requests simultaneity, this interesting

    Anyway is there any idea how to make this despite what you wrote above ???

    I really want to try to this with fork.