Board index » Visual Studio » when application (windows server) considered to be hung

when application (windows server) considered to be hung

Visual Studio155
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


-
 

Re:when application (windows server) considered to be hung

Koti <koti@perumalla.us>wrote:

Quote
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 ???? )



The OS marks a process as hung when it does not respond to a window

message within 5 sec. See also SendMessageTimeout.



Quote
Can we conclude the given process is in hung state or not based on any

process or thread properties (% CPU usage etc).



I guess it would depend on your definition of the term "hung".

--

With best wishes,

Igor Tandetnik



With sufficient thrust, pigs fly just fine. However, this is not

necessarily a good idea. It is hard to be sure where they are going to

land, and it could be dangerous sitting under them as they fly

overhead. -- RFC 1925





-

Re:when application (windows server) considered to be hung

See KB article



How To Detect If an Application Has Stopped Responding

http://support.microsoft.com/?id" rel="nofollow" target="_blank">support.microsoft.com/=231844



--

Cheers

Check Abdoul [VC++ MVP]

-----------------------------------



"Koti" <koti@perumalla.us>wrote in message

Quote


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





-

Re:when application (windows server) considered to be hung



Koti wrote:

Quote
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.)



There is no definitive answer, it depends on the application.



Take a web server for example : you cannot conclude it is hung because

it do nothing (it may simply have no clients at the current time). On

the other side, a compiler that doesn't use CPU for a long time is most

probably hung.



Concerning taskmanager, it display the "Not responding" flag only for

apps that have a main window, base on wether the main window is

responsive or not (see our previous answer).



Arnaud

MVP - VC



-