推荐使用Runnable对象,因为Java单继承的局限性
自定义线程类实现Runnable接口
Runnable
实现run()方法,编写线程执行体
run()
创建线程对象,调用start()方法启动对象
start()