线程

线程的创建

通常,有三种使用线程的方法:

  1. 实现 Runnable 接口

  2. 实现 Callable 接口,作为 FutureTask 的参数

  3. 继承 Thread 类

最后更新于