62,614
社区成员
发帖
与我相关
我的任务
分享
MyThread thread = new MyThread();
thread.start();
try{
Thread.sleep(10000);
}catch(InterruptedException e){
thread.interrupt();
}
MyThread thread = new MyThread();
thread.start();
try{
Thread.sleep(10000);
}catch(InterruptedException e){
}
//中断子线程
thread.interrupt();