java 如何强行终止一个线程

2025-02-25 15:45:55
推荐回答(1个)
回答1:

mThread.interrupt();
中断线程。 把线程的状态终止,并抛出一个InterruptedException。