Package java.lang
Class Thread
java.lang.Object
java.lang.Thread
- All Implemented Interfaces:
Runnable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionThread()
Thread
(ThreadGroup var0, Runnable var1) Thread
(ThreadGroup var0, Runnable var1, String var2) Thread
(ThreadGroup var0, Runnable var1, String var2, long var3) Thread
(ThreadGroup var0, String var1) -
Method Summary
Modifier and TypeMethodDescriptionstatic int
final void
static Thread
void
destroy()
static void
static int
final String
getName()
final int
final ThreadGroup
static boolean
void
static boolean
final boolean
isAlive()
final boolean
isDaemon()
boolean
final void
join()
final void
join
(long var0) final void
join
(long var0, int var1) void
run()
void
final void
setDaemon
(boolean var0) final void
final void
setPriority
(int var0) static void
sleep
(long var0) static void
sleep
(long var0, int var1) void
start()
static void
yield()
-
Field Details
-
MAX_PRIORITY
public static final int MAX_PRIORITY- See Also:
-
MIN_PRIORITY
public static final int MIN_PRIORITY- See Also:
-
NORM_PRIORITY
public static final int NORM_PRIORITY- See Also:
-
-
Constructor Details
-
Thread
public Thread() -
Thread
-
Thread
-
Thread
-
Thread
-
Thread
-
Thread
-
Thread
-
-
Method Details
-
activeCount
public static int activeCount() -
checkAccess
public final void checkAccess() -
currentThread
-
destroy
public void destroy() -
dumpStack
public static void dumpStack() -
enumerate
-
getContextClassLoader
-
getName
-
getPriority
public final int getPriority() -
getThreadGroup
-
holdsLock
-
interrupt
public void interrupt() -
interrupted
public static boolean interrupted() -
isAlive
public final boolean isAlive() -
isDaemon
public final boolean isDaemon() -
isInterrupted
public boolean isInterrupted() -
join
- Throws:
InterruptedException
-
join
- Throws:
InterruptedException
-
join
- Throws:
InterruptedException
-
run
public void run() -
setContextClassLoader
-
setDaemon
public final void setDaemon(boolean var0) -
setName
-
setPriority
public final void setPriority(int var0) -
sleep
- Throws:
InterruptedException
-
sleep
- Throws:
InterruptedException
-
start
public void start() -
yield
public static void yield()
-