学霸985
2019-02-28 22:49
对了,怎么新建一个线程了?
Throw.........
Thread thread = new Thread();
Thread thread = new Thread(String name);
Thread thread = new Thread(Runnable runnable);
Thread thread = new Thread(Runnable runnable, String name);
入参name可以通过Thread.currentThread.getName()获得
深入浅出Java多线程
186088 学习 · 464 问题
相似问题