public class ThreadDemo {
public static void main(String[] args) {
A a = new A();
Thread thread = new Thread(a);
thread.start();
thread.start();
}
}
class A implements Runnable{
@Override
public void run() {
System.out.println(Thread.currentThread
两次start同一个线程会怎么样
最新推荐文章于 2024-03-11 20:06:10 发布