• 继承Thread类
  • 实现Runnable接口
  • 使用Executor框架来创建线程池