运作runable阻塞线程

运行runable阻塞线程MyRun aa new MyRun ()new Thread(aa).start()//new Thread(aa).run() 会阻塞线

运行runable阻塞线程

MyRun aa = new MyRun ();new Thread(aa).start();//new Thread(aa).run(); 会阻塞线程

class MyRun implements Runnable{public void run() {try {Log.e("MyRun ","in");Thread.sleep(5000);Log.e("MyRun ", "out");} catch (InterruptedException e) {e.printStackTrace();}}}