E
Ethan
Hi,
I came to know that JDWP thread is used for debugging and that it is
used by the debugger to suspend other user java threads. In a previous
post, it seems like most modern JVMs leave thread management to their
native OS, hence it wouldn't be possible for JDWP to directly suspend
other user java threads and it could at the best hope to have them
finish their work and move out of ready queue.
If this is the case, how would it work with a java thread that is in
an infinite loop, good enough to ensure that it doesn't finish at all?
If not please share any links as to how it works. TIA.
I came to know that JDWP thread is used for debugging and that it is
used by the debugger to suspend other user java threads. In a previous
post, it seems like most modern JVMs leave thread management to their
native OS, hence it wouldn't be possible for JDWP to directly suspend
other user java threads and it could at the best hope to have them
finish their work and move out of ready queue.
If this is the case, how would it work with a java thread that is in
an infinite loop, good enough to ensure that it doesn't finish at all?
If not please share any links as to how it works. TIA.