| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_PRIORITY |
static int |
MIN_PRIORITY |
static int |
NORM_PRIORITY |
| Constructor and Description |
|---|
Thread() |
Thread(Runnable target) |
Thread(Runnable target,
String name) |
Thread(String name) |
| Modifier and Type | Method and Description |
|---|---|
static int |
activeCount() |
static Thread |
currentThread() |
String |
getName() |
int |
getPriority() |
StackTraceElement[] |
getStackTrace() |
void |
interrupt() |
boolean |
isAlive() |
void |
join() |
void |
run() |
void |
setPriority(int newPriority) |
static void |
sleep(long millis) |
void |
start() |
String |
toString() |
static void |
yield() |
public static final int MAX_PRIORITY
public static final int MIN_PRIORITY
public static final int NORM_PRIORITY
public Thread()
public Thread(Runnable target)
public Thread(String name)
public static int activeCount()
public static Thread currentThread()
public final String getName()
public final int getPriority()
public void interrupt()
public final boolean isAlive()
public final void join()
throws InterruptedException
InterruptedExceptionpublic final void setPriority(int newPriority)
public static void sleep(long millis)
throws InterruptedException
InterruptedExceptionpublic void start()
public static void yield()
public StackTraceElement[] getStackTrace()
Copyright © 2026. All rights reserved.