Package | Description |
---|---|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
Modifier and Type | Class and Description |
---|---|
class |
Thread
A thread is a thread of execution in a program.
|
Constructor and Description |
---|
Thread(Runnable target)
Allocates a new
Thread object. |
Thread(Runnable target,
String name)
Allocates a new
Thread object. |
Thread(ThreadGroup group,
Runnable target)
Allocates a new
Thread object. |
Thread(ThreadGroup group,
Runnable target,
String name)
Allocates a new
Thread object so that it has target
as its run object, has the specified name as its name,
and belongs to the thread group referred to by group . |
Thread(ThreadGroup group,
Runnable target,
String name,
long stackSize)
Allocates a new
Thread object so that it has target
as its run object, has the specified name as its name,
and belongs to the thread group referred to by group , and has
the specified stack size. |