java kill thread command line_unix

 

multithreading - How do you kill a Thread in Java? - Stack Overflow

https://stackoverflow.com/questions/671049/how-do-you-kill-a-thread-in-java

THI05-J. Do not use Thread.stop() to terminate threads - SEI CERT Oracle Coding Standard for Java - Confluence

https://wiki.sei.cmu.edu/confluence/display/java/THI05-J.+Do+not+use+Thread.stop()+to+terminate+threads

[JavaSpecialists 056] - Shutting down threads cleanly

https://www.javaspecialists.eu/archive/Issue056.html

multithreading - How to kill a Thread in Java that is in state RUNNING? - Stack Overflow

https://stackoverflow.com/questions/8180747/how-to-kill-a-thread-in-java-that-is-in-state-running



On linux, there is a tkill(int tid, int sig) command, similar to kill.

On windows, ProcessExplorer can do it from gui, don't know if there is anything with cli.


command line - How can I kill a particular thread of a process? - Unix & Linux Stack Exchange

https://unix.stackexchange.com/questions/1066/how-can-i-kill-a-particular-thread-of-a-process

Stopping java thread using kill command line (Java in General forum at Coderanch)

https://coderanch.com/t/328685/java/Stopping-java-thread-kill-command

 

 

tgkill(2): send signal to thread - Linux man page

https://linux.die.net/man/2/tgkill

tkill(2) - Linux manual page

http://man7.org/linux/man-pages/man2/tgkill.2.html

linux下syscall函数,SYS_gettid,SYS_tgkill - DoubleLi - 博客园