基础语法-进程和线程

mxleader / 2023-07-06 / 原文

Java 提供了两种创建线程的方法:

  • 通过实现 Runnable 接口;
  • 通过继承 Thread 类本身;