DOCUMENTATION COMMENTS
Example
18.5
  
Causes a thread to wait until it is notified or the
specified timeout expires. 

The method wait(millis) can be called only by
the thread that is the owner of the current object s
monitor lock.
  
    
Parameters:
    
millis the maximum time to wait,
in milliseconds
    
Throws:
_top_">IllegalMonitorStateException
    
If the
current thread is not the owner
of the Object s monitor lock.
    
Throws: I
nterruptedException
    
Another thread has
interrupted this thread.
  
lt=" o ">
wait
  public final void wait(long millis,
                         int nanos) throws 
ption.html#_top_">InterruptedException
  
More accurate wait.
The method wait(millis, nanos) can be called only
by the thread that is the owner of the current
object s monitor lock.
  
    
Parameters:
    
millis the maximum time to wait,
in milliseconds
    
nano additional time to wait,
in nanoseconds
(range 0 999999)
    
Throws:
_top_">IllegalMonitorStateException
    
If the
current thread is not the owner
of the Object s monitor lock.
    
Throws: I
nterruptedException
    
Another thread has
interrupted this thread.
  
 o  
wait
  public final void wait() throws 
l#_top_">InterruptedException
  
Causes a thread to wait forever until it is notified.

The method wait() can be called only by the
thread that is the owner of the current object s
monitor lock.
  
    
Throws:
_top_">IllegalMonitorStateException
    
If the
current thread is not the owner
of the Object s monitor lock.
431






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