Class SystemThread
public class SystemThread extends Thread
{
// Constructors
public SystemThread();
public SystemThread(String name);
public SystemThread(Runnable target);
public SystemThread(Runnable target,String name);
// Methods
public static ThreadGroup getSystemThreadGroup();
}
An object of the SystemThread class represents a thread that is always created in the system thread group (the highest level thread group, which has no parent). Untrusted code cannot create threads in the system thread group.
Also see Thread, ThreadGroup
Thread
|
+--SystemThread
public SystemThread();
Creates a new SystemThread object. This constructor has the same effect as making the following call when group is the system thread group:
Thread(group, null , null)
See Also: java.lang.ThreadGroup, java.lang.Runnable, java.lang.String
public SystemThread(String name);
Creates a new SystemThread object. When group is the system thread group, this constructor has the same effect as making the following call:
Thread(group, null , name)
Parameter | Description |
name
| The name of the new thread.
|
See Also: java.lang.ThreadGroup, java.lang.Runnable, java.lang.String
public SystemThread(Runnable target);
Creates a new SystemThread object. When group is the system thread group, this constructor has the same effect as making the following call:
Thread(group, target, null)
Parameter | Description |
target
| The object, whose run method is called.
|
See Also: java.lang.ThreadGroup, java.lang.Runnable, java.lang.String
public SystemThread(Runnable target,String name);
Creates a new SystemThread object. When group is the system thread group, this constructor has the same effect as making the following call:
Thread(group, target , name)
Parameter | Description |
target
| The object, whose run method is called.
|
name
| The name of the new thread.
|
See Also: java.lang.ThreadGroup, java.lang.Runnable, java.lang.String
public static ThreadGroup getSystemThreadGroup();
Retrieves the system thread group.
Return Value:
Returns the ThreadGroup object of the system thread group.