My WPF application used high CPU usage after about 30 minutes, after which I break the application to find out which code spent a lot of CPU, but I didnโt get anything.
Visual Studio 2008 cannot display the current executable code, but I found this in the Call Stack panel:
[In a sleep, wait, or join]
mscorlib.dll! System.Threading.WaitHandle.WaitAny (System.Threading.WaitHandle [] waitHandles, int millisecondsTimeout, bool exitContext) + 0x8f bytes
System.dll! System.Net.TimerThread.ThreadProc () + 0x2f9 bytes
mscorlib.dll! System.Threading.ThreadHelper.ThreadStart_Context (object state) + 0x66 bytes
mscorlib.dll! System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x6f bytes
mscorlib.dll! System.Threading.ThreadHelper.ThreadStart () + 0x44 bytes
what is it? What is important when using a processor? and how to reduce CPU usage?
source share