What is it exactly that "triggers" Windows to mark a process as Not responding in the Task Manager and Resource Monitor?
The Answer An application gets events from a queue provided by Windows. If the application does not poll the event queue for a while (5 seconds), such as doing a long calculation for example, then Windows assumes that the application is hung and alerts the user.
“Not responding” happens when a program stops interacting with Windows properly. This can be due to legitimate delays, as the program is busy working. It can also be due to errors of various sorts including a programming bug, a design error, a hardware problem, malware, and more.
The API behind this is IsHungAppWindow. Basically, if the application has not pumped a message within 5 seconds it can be marked as not responding.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With