THE PACKAGE JAVA.LANG
java.lang.Thread
20.20
In all other respects, this method does the same thing as the method
join
 of one
argument ( 20.20.29). In particular,
join(0, 0)
 means the same thing as
join(0)
.
If the current thread is interrupted ( 20.20.31) by another thread while it is
waiting, then the wait is ended and an
InterruptedException
 is thrown.
20.20.31
public void interrupt()
An interrupt request is posted for this thread. This thread does not necessarily
react immediately to the interrupt, however. If this thread is waiting, it is awak 
ened and it then throws an
InterruptedException
.
[This method is scheduled for introduction in Java version 1.1.]
20.20.32
public boolean isInterrupted()
The result is
true
 if and only if an interrupt request has been posted for this
thread.
[This method is scheduled for introduction in Java version 1.1.]
20.20.33
public static boolean interrupted()
The result is
true
 if and only if an interrupt request has been posted for the cur 
rent thread.
[This method is scheduled for introduction in Java version 1.1.]
20.20.34
public static Thread currentThread()
The
Thread
 object that represents the current thread is returned.
20.20.35
public static int activeCount()
This method returns the number of active threads in the thread group to which the
current thread belongs. This count includes threads in subgroups of that thread
group. This is the same as the value of the expression:
Threads.currentThread().getThreadGroup().activeCount()
[This method is deprecated for use in new code after Java version 1.1 becomes
available. Instead, an expression equivalent to:
599






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