package process;
class Thread1 extends Thread{
public void run(){
for(int x = 0;x < 100;x++){
System.out.println("thread1 is "+x);
}
}
}
public class ThreadDemo {
public static void main(String[] args){
Thread1 t = new Thread1();
t.start();
for(int x = 0;x < 100; x++ ){
System.out.println("mian is " + x);
}
}
}
线程(创建线程)
最新推荐文章于 2022-11-14 20:31:44 发布