实现线程的几种方式

来源:互联网 发布:网络彩票开售最新进展 编辑:程序博客网 时间:2024/05/16 02:37

1、继承Thread

2、实现Runnable接口

3、线程池

4、Callable<Integer>的方式

2 0