We have a need for a mechanism to force a threads stack trace and monitor dump from within the Java program itself. I know that we can force the stack trace from outside the program on UNIX systems by sending a SIGQUIT signal to the Java program. This can be done by typing CTRL\
I have implemented a simple JNI method in C that does:
kill( getpid(), SIGQUIT );
which seems to work from within the program. However, I don't know how to do the equivalent on Windows NT. Windows doesn't appear to have a kill function, and doesn't have a full implementation of UNIX signals, I believe.
Can anyone help?