📄 threadhelper.java
字号:
import java.util.List;
public class ThreadHelper implements Runnable {
int tc;
List<Thread> threads;
List<ProfileDL> instances;
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
}
public void run() {
exitThreads();
}
public ThreadHelper(int tc,List<Thread> threads, List<ProfileDL> instances)
{
this.tc=tc;
this.threads=threads;
this.instances=instances;
}
private void exitThreads() {
int i;
for (i = 0; i < tc; i++) {
if (threads.get(i).isAlive()) {
instances.get(i).exit(threads.get(i).getName());
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -