创建线程的有哪些方式?

1、继承 Thread 类创建线程类

2、通过 Runnable 接口创建线程类

3、通过 Callable 和 Future 创建线程

4、通过线程池创建

原文地址:https://www.cnblogs.com/programb/p/13021210.html