THE PACKAGE JAVA.LANG
java.lang.Thread
20.20
20.20 The Class
java.lang.Thread
A thread is a single sequential flow of control. Thread objects allow multithreaded
Java programming; a single Java Virtual Machine can execute many threads in an
interleaved or concurrent manner.
In the method descriptions that follow, it is very important to distinguish
among the current thread (the thread executing the method), this
Thread
(the
object for which the method was invoked), and this thread (the thread that is
represented by the
Thread
object for which the method was invoked).
public class Thread implements Runnable {
public final static int MIN_PRIORITY = 1;
public final static int MAX_PRIORITY = 10;
public final static int NORM_PRIORITY = 5;
public Thread();
public Thread(String name);
public Thread(Runnable runObject);
public Thread(Runnable runObject, String name);
public Thread(ThreadGroup group, String name)
throws SecurityException, IllegalThreadStateException;
public Thread(ThreadGroup group, Runnable runObject)
throws SecurityException, IllegalThreadStateException;
public Thread(ThreadGroup group, Runnable runObject,
String name)
throws SecurityException, IllegalThreadStateException;
public String toString();
public void checkAccess() throws SecurityException;
public void run();
public void start()
throws IllegalThreadStateException;
public final void stop()
throws SecurityException;
public final void stop(Throwable thr)
throws SecurityException, NullPointerException;
public final void suspend()
throws SecurityException;
public final void resume()
throws SecurityException;
public final String getName();
public final void setName(String name)
throws SecurityException;
public final ThreadGroup getThreadGroup();
public final int getPriority();
587
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved