package C19;public class ThreadDemo_1 { /**
 * @param args
 */
public static void main(String[] args) {
// TODO Auto-generated method stub
TestThread t = new TestThread();
new Thread(t).start();
// new TestThread2().start();
for(int i = 0; i < 10; i++){
System.out.println("main 线程在运行");
}
}}class TestThread implements Runnable{
public void run(){
for(int i = 0; i < 10; i++){
System.out.println("TestThread 在运行");
}
}
}
上面是书上给的例子,但是得不到"main 线程在运行"和"TestThread 在运行"交替出现的结果,请问是例子错了还是跟我的系统有关系