when application considered to be hung
-
Based on what parameters we can conclude that a process is in hung state. ( 100% CPU Usage?? Or if any thread is continiuosly in wait state for a long time??? or ???? ) Can we conclude the given process is in hung state or not based on any process or thread properties (% CPU usage etc). How taskmanger is getting state of hung process? (Generally task manager displays "Not responding" if any process is hang.) Regards, Koti
-
Based on what parameters we can conclude that a process is in hung state. ( 100% CPU Usage?? Or if any thread is continiuosly in wait state for a long time??? or ???? ) Can we conclude the given process is in hung state or not based on any process or thread properties (% CPU usage etc). How taskmanger is getting state of hung process? (Generally task manager displays "Not responding" if any process is hang.) Regards, Koti
Check out IsHungAppWindow()
-
Based on what parameters we can conclude that a process is in hung state. ( 100% CPU Usage?? Or if any thread is continiuosly in wait state for a long time??? or ???? ) Can we conclude the given process is in hung state or not based on any process or thread properties (% CPU usage etc). How taskmanger is getting state of hung process? (Generally task manager displays "Not responding" if any process is hang.) Regards, Koti
In addition to
IsHungAppWindow()
, you can useSendMessageTimeout()
if you need this functionality on machines prior to Windows 2000.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb