Issue: our parser is using 100% CPU once run on a machine, till it finishes its processing.Good for you! I wish my programs could use 100% CPU time until they are finished. Unfortunally, they usually have to compete against other programs, and don't get enough 100% of the CPU time. 100% CPU time is (usually) a good thing.
Instead of reading one line at a time from the log file, I want to read a block and keep it in memory (lets say 10 kb) , However we are facing some problem then how our parser will react as it read file line by line instead of chunk of file and in this case how will I parse our log file.Perhaps this will make your program more efficient. Perhaps not. It all depends on what your program is doing. If I had to bet though, I'd bet that it wouldn't make your program more efficient. If you're using 100% CPU time, it seems your program is CPU bound, and fiddling with size of the chunks you read from disk matters mostly from programs that have an I/O bottleneck.
Perl has a Win32 package. How can I use this package to reduce the CPU usage as I got the following line of code but I am unable to use it.What line of code is that, and why are you unable to use it?
Seeking a great help from your side. Please do it as soon as because it is very urgent for me.You really think that going to a forum with volunteers of various quality is a smart thing to do if you have an urgent problem?
In reply to Re: CPU utilization
by Anonymous Monk
in thread CPU utilization
by contact_chatan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |