THE PACKAGE JAVA.LANG
java.lang.Thread
20.20
20.20.40
public static void sleep(long millis, int nanos)
throws InterruptedException
This method causes the current thread to yield and not to be scheduled for further
execution until a certain amount of real time has elapsed, more or less.
The amount of real time, measured in nanoseconds, is given by:
1000000*millis+nanos
In all other respects, this method does the same thing as the method
sleep
 of one
argument ( 20.20.39). In particular,
sleep(0, 0)
 means the same thing as
sleep(0)
.
If the current thread is interrupted ( 20.20.31) by another thread while it is
waiting, then the sleep is ended and an
InterruptedException
 is thrown.
20.20.41
public void destroy()
throws SecurityException
First, the
checkAccess
 method ( 20.20.12) of this
Thread
 object is called with
no arguments. This may result in throwing a
SecurityException
 (in the current
thread).
Then destroys this thread, without any cleanup. Any monitors the thread has
locked remain locked.
[This method is not implemented in early versions of Java, through 1.1.]
601






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