Dar*_*Tan 8 process mozilla kill
我是 Ubuntu 的新手,也是这里的新手。我需要知道这一点。
如何在 Ubuntu 中从终端杀死单个线程?我打开了 mozilla,它有 45 个线程。我想杀死其中一个。
我已经在网上搜索了很多资源,但无济于事。谁能帮我?
你不能。不是没有杀死整个过程。From man 3 pthread_kill
,一个用于信号处理的函数:
NOTES
Signal dispositions are process-wide: if a signal handler is installed,
the handler will be invoked in the thread thread, but if the
disposition of the signal is "stop", "continue", or "terminate", this
action will affect the whole process.
Run Code Online (Sandbox Code Playgroud)
另请参阅此 U&L 帖子。