You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aggregation-platform/test/com/platform/test/testStateThread.java

21 lines
404 B

package com.platform.test;
public class testStateThread {
public static void main(String[] args) {
for (int i = 0; i < 100; i++) {
Thread t1 = new Thread(new testStatement(), "线程-"+i);
t1.setDaemon(true);
t1.start();
}
try {
Thread.sleep(50000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}