Package | Description |
---|---|
java.lang |
Provides classes that are fundamental to the Java programming
language.
|
Modifier and Type | Method and Description |
---|---|
void |
Thread.join()
Waits for this thread to die.
|
static void |
Thread.sleep(long millis)
Causes the currently executing thread to sleep (temporarily cease
execution) for the specified number of milliseconds.
|
void |
Object.wait()
Causes current thread to wait until another thread invokes the
Object.notify() method or the
Object.notifyAll() method for this object. |
void |
Object.wait(long timeout)
Causes current thread to wait until either another thread invokes the
Object.notify() method or the
Object.notifyAll() method for this object, or a
specified amount of time has elapsed. |
void |
Object.wait(long timeout,
int nanos)
Causes current thread to wait until another thread invokes the
Object.notify() method or the
Object.notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed. |
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.