Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Code and Process Efficency

by bl0rf (Pilgrim)
on Dec 30, 2003 at 03:07 UTC ( #317612=note: print w/ replies, xml ) Need Help??


in reply to Code and Process Efficency

I think the performance hit is due to your scripts all trying to use the CPU at the same time. Try calling the scripts sequentially, because you don't need all of them running at once (do you??).

@scripts = ('eenie.pl','meenie.pl','foe.pl'); foreach $script ( @scripts ) { system( "perl -W".$script ); }
using system waits until one program finishes running before it executes another one.


Comment on Re: Code and Process Efficency
Select or Download Code
Re: Re: Code and Process Efficency
by mcogan1966 (Monk) on Dec 30, 2003 at 12:42 UTC
    Actually, the scripts do need to run at the same time, hence the code as it was written. I wouldn't be trying to fork off multiple processes if I didn't need them to run at the same time.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://317612]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2014-09-18 12:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (113 votes), past polls