How To Reduce CPU Usage ?
-
Hello. I have got this multithreaded video player desktop application. Now this is my first experience with multithreaded apps so I don't know a lot of things. One thing that I can tell is that this application is running with 32-34 threads (using Resource Monitor) and CPU jumps from
2%-6%
to58%-62%
. Starting - from analyzing the code that takes this much CPU - to remedy this problem What could I do to reduce this CPU usage ? Should I be modifying the code (to make it efficient) or are there any other things that I could tryThis world is going to explode due to international politics, SOON.
-
Hello. I have got this multithreaded video player desktop application. Now this is my first experience with multithreaded apps so I don't know a lot of things. One thing that I can tell is that this application is running with 32-34 threads (using Resource Monitor) and CPU jumps from
2%-6%
to58%-62%
. Starting - from analyzing the code that takes this much CPU - to remedy this problem What could I do to reduce this CPU usage ? Should I be modifying the code (to make it efficient) or are there any other things that I could tryThis world is going to explode due to international politics, SOON.
1. Is it your code ? 2. If not your code, are you capable of understanding, modifying, and testing the code ? If the answer to either of these questions is yes, then you need to help us understand what the app is doing now that uses so many threads, and eats so much CPU bandwidth: what its structure is.
« I am putting myself to the fullest possible use which is all, I think, that any conscious entity can ever hope to do » HAL (Heuristically programmed ALgorithmic computer) in "2001, A Space Odyssey"