实现多线程的方式 1.继承Thread,重写run()方法; 2.实现Runnable接口,重写run()方法; 3.实现Callable接口(带返回值,抛异常),借助future接口; 4.线程池 ExecuteService /Sxecutors