package com.day18.线程; public class ThreadTwo { public static void main(String[] args) { MyRunnable mr=new MyRunnable(); Thread t=new Thread(mr); t.start(); for(int j=0;j<1000;j++) { System.out.println("aaaaa"); } } } class MyRunnable implements Runnable{ @Override public void run() { for(int i=0;i<1000;i++) { System.out.println("bbbbb"); } } }