public class test3 {
/**
* @param args
*/
public static void main(String[] args) {
MyRunnable mr = new MyRunnable();
//mr.start();
mr.run();
Thread t = new Thread();
t.start();
for(int x = 0; x < 100000; x++) {
System.out.println("bb");
}
}
}
class MyRunnable implements Runnable {
@Override
public void run() {
for(int x = 0; x < 101000; x++) {
System.out.println("aaaaaaaaaaaaaaaa");
}
}
}
我这个貌似没有一起执行啊?我记得aaa和bb是穿插着打印的 |