Thanks
so if your program is called fred
ps -ef | grep fred
"Tony Gallo" <ga...@thruway.state.ny.us> wrote in message
news:a762a003.01090...@posting.google.com...
1) Client process being hung off init as opposed
a shell or application. Something exited
without proper cleanup.
2) <defunct> processes.
BIP
ga...@thruway.state.ny.us (Tony Gallo) wrote in message news:<a762a003.01090...@posting.google.com>...
That depends on what you mean by "hung." If you mean that the
process is stuck in kernel mode (and therefore cannot be killed
even with SIGKILL or stopped with SIGSTOP), I'd expect the S column
for the process in the output of ps -el to be 'S'. Corrections
welcome.
Regards,
Nicholas Dronen
--
$ more worth doing
/dev/null (END)
Usually there are two types of process which get called "hung" -
1) A real deadlocked scene
2) Some for/while loop with an improper ending condition which makes the
process loop infinitly ( shows up as process taking 100 % CPU )
Write a small script that attaches the debugger to the process and get a
stack trace of all threads. If the stack trace remains the same all the time
with all threads waiting/sleeping on events/locks then you probably have a
deadlock scene.
If you see one of the threads in the middle of a for/while loop somewhere
and have seen a 100% CPU utilization by that thread then it would help you
find that line of the code.
Regards,
Tejas.