package IO;
import java.io.IOException;
public class Test {
public static void main(String[] args) {
User user = new User();
Thread thread = new Thread(user);
thread.start();
for(int k=0;k<=1000;k++){
System.out.println("我是主线程"+k);
}
}
}
package IO;
public class User implements Runnable{
@Override
public void run() {
for (int j=0;j<=1000;j++){
System.out.println("我是一个分支线程"+j);
}
}
}