Packages
 In this topic

*Constructors

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.lang   Previous This
Package
Next

 


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

Constructors

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

SystemThread

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)

ParameterDescription
name The name of the new thread.

See Also: java.lang.ThreadGroup, java.lang.Runnable, java.lang.String

SystemThread

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)

ParameterDescription
target The object, whose run method is called.

See Also: java.lang.ThreadGroup, java.lang.Runnable, java.lang.String

SystemThread

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)

ParameterDescription
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

Methods

getSystemThreadGroup

public static ThreadGroup getSystemThreadGroup();

Retrieves the system thread group.

Return Value:

Returns the ThreadGroup object of the system thread group.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.