Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Multithreaded Script CPU Usage

by Zenshai (Sexton)
on Aug 27, 2008 at 01:42 UTC ( #707037=note: print w/replies, xml ) Need Help??


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

Well, there goes that theory.

I remade the script as I specified above, and while its working exactly as intended, the original problem still remains. Perl CPU usage is still too high when it should be idle.

I've found that I can give the FileList processes some more CPU room by setting the Perl process's priority to Below Normal or Low, but that's not really solving the problem. Its still needlessly using resources that can be better spent doing other things, or even being idle.

I'm going to think about some other way to do this, without threads.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://707037]
help
Chatterbox?
[james28909]: but you could put it all in one sub and return the same data type that was inputted. i could write a small example maybe
[Lady_Aleena]: Their uses are also vastly different.
[Lady_Aleena]: The first two make hashes and arrays from a file, the third returns data from a pre-existing hash.
[Lady_Aleena]: Well, HoH and AoH respectively.
[Lady_Aleena]: But if you want to play, play. I don't mind. 8)

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2017-05-24 05:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?