1继承Thread类创建线程
2实现Runnable接口创建线程
3使用callable接口和FutureTask类创建线程:
Callable用于产生结果,Future用于获取结果
4线程池
06-13
2182
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-05
1万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-16
7149
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
02-19
1继承Thread类创建线程
2实现Runnable接口创建线程
3使用callable接口和FutureTask类创建线程:
Callable用于产生结果,Future用于获取结果
4线程池