Java多线程编程总结(14)
时间:2026-01-19
时间:2026-01-19
多线程 java
static int MAX_PRIORITY
线程可以具有的最高优先级。
static int MIN_PRIORITY
线程可以具有的最低优先级。
static int NORM_PRIORITY
分配给线程的默认优先级。
构造方法摘要
Thread(Runnable target)
分配新的 Thread 对象。
Thread(String name)
分配新的 Thread 对象。
方法摘要
static Thread currentThread()
返回对当前正在执行的线程对象的引用。
ClassLoader getContextClassLoader()
返回该线程的上下文 ClassLoader。
long getId()
返回该线程的标识符。
String getName()
下一篇:应用办公软件-试卷(含答案)