20.20
java.lang.Thread
THE PACKAGE JAVA.LANG
public final void setPriority(int newPriority)
throws SecurityException, IllegalArgumentException;
public final boolean isDaemon();
public final void setDaemon(boolean on)
throws SecurityException, IllegalThreadStateException;
public final boolean isAlive();
public int countStackFrames();
public final void join()
throws InterruptedException;
public final void join(long millis)
throws InterruptedException;
public final void join(long millis, int nanos)
throws InterruptedException;
public void interrupt();
public boolean isInterrupted();
public static boolean interrupted();
public static Thread currentThread();
public static int activeCount();
//
deprecated
public static int enumerate(Thread tarray[]);
//
deprecated
public static void dumpStack();
public static void yield();
public static void sleep(long millis)
throws InterruptedException;
public static void sleep(long millis, int nanos)
throws InterruptedException;
public void destroy();
}
When a new
Thread
 object is created, the thread it represents is not yet active.
It is activated when some other thread calls the
start
 method ( 20.20.14) of the
Thread
 object. This causes the thread represented by the
Thread
 object to invoke
the
run
 method ( 20.20.13) of the
Thread
 object. The newly activated thread then
remains alive until it stops because one of five things occurs:
The initial invocation of the
run
 method by the newly activated thread com 
pletes normally through a normal return from the
run
 method.
The initial invocation of the
run
 method by the newly activated thread com 
pletes abruptly because an exception was thrown.
The thread invokes the
stop
 method ( 20.20.15) of the
Thread
 object (and
the security manager ( 20.17.11) approves execution of the
stop
 operation).
Some other thread invokes the
stop
 method of the
Thread
 object (and the
security manager ( 20.17.11) approves execution of the
stop
 operation).
588






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

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