| Serial number |
Method name |
Type |
Describe |
| 1 |
Public Thread (Runnable target) |
Structure |
Receives the Runnable interface subclass object, instantiates the thread object |
| 2 |
PUBLC Thread (Runnable target,string name) |
Structure |
Receives the Runnable interface subclass object, instantiates the thread object, and sets the threading name |
| 3 |
PUBLC Thread (String name) |
Structure |
Instantiate the thread object and set the name of the threads |
| 4 |
public static Thread CurrentThread () |
Ordinary |
Returns the process currently being executed |
| 5 |
Public final String GetName () |
Ordinary |
Returns the name of the thread |
| 6 |
public boolean isinterrupted () |
Ordinary |
Returns whether the current thread has been interrupted |
| 7 |
Public final isAlive ()//Decide whether to start |
Ordinary |
Returns whether the thread is getting |
| 8 |
Public final void join () throws interrupted Exception//Enforcement |
Ordinary |
Waiting for thread to die |
| 9 |
public void Run () |
Ordinary |
Start thread |
| 10 |
Public final void SetName (String name) |
Ordinary |
Set Thread name |
| 11 |
Public final void setpriority (int newprioruty) |
Ordinary |
Set the priority level |
| 12 |
public static void sleep (long Millis) throws interruptedexception//thread hibernation |
Ordinary |
Causes the currently executing thread to hibernate milllis seconds |
| 13 |
public void Start () |
Ordinary |
Start thread Execution |
| 14 |
Public String toString () |
Ordinary |
Returns a String representing a thread |
| 15 |
public static void yield ()//comity of Threads |
Ordinary |
Pauses the currently executing thread |
| 16 |
Public final void Setdeamon (Boolean on)//Background thread |
Ordinary |
Set a thread to run in the background |
|
|
|
|
|
|
|
|