Thread threads[]=new Thread[100];
for(int i=0;i<100;i++){
threads[i]=new Thread(//put some runnable here );
threads[i].start();
}
Java 如何自动创建多个Thread 线程
最新推荐文章于 2024-04-09 04:18:18 发布
Thread threads[]=new Thread[100];
for(int i=0;i<100;i++){
threads[i]=new Thread(//put some runnable here );
threads[i].start();
}