class MultiThread...{
public static void main(String[] args)...{
MyThread mt=new MyThread();
new Thread(mt).start(); //创建多个线程
new Thread(mt).start();
new Thread(mt).start();
new Thread(mt).start();
new Thread(mt).start();
new Thread(mt).start();
while(true)...{
System.out.println("main:"+Thread.currentThread().getName());
}
}
}
class MyThread implements Runnable...{
int index=0; //共享变量
public

