两种方法: 1、实现Runnable接口 2、继承Thread类并重写run()方法 转载于:https://www.cnblogs.com/ARABYCHEN/p/10603036.html