我想在调用main方法时关闭所有正在运行的线程(如果有的话).
public static void main(String[] args) throws Exception { // Close all thread except current one ... // Remaining of my program }
java multithreading
java ×1
multithreading ×1