Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^3: Multithreaded Script CPU Usage

by Perlbotics (Chancellor)
on Aug 25, 2008 at 23:35 UTC ( #706803=note: print w/replies, xml ) Need Help??

in reply to Re^2: Multithreaded Script CPU Usage
in thread Multithreaded Script CPU Usage

Just an idea... what if everything is perfectly right that way? I am not sure how costly fix_file_4mysql() and mysql_load_data() are, but if the do_scan() execution is much faster than loading the DB, perl.exe is still digesting the output of previous runs of FileList.exe. So, you'll might observe only four FileList.exe jobs that are currently running while the output of several dozen previous runs is still processed.

How big is max => $total_threads? The number of $temp_filename's currently existing might provide a rough estimation of how many workers are currently busy.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://706803]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2018-03-20 20:34 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (259 votes). Check out past polls.