Package | Description |
---|---|
java.lang | |
java.lang.ref |
Modifier and Type | Method and Description |
---|---|
void |
Thread.join()
join() blocks the calling thread until this Thread has terminated
(see the implementation of _run()).
|
void |
Thread.join(long millis)
join(millis) blocks the calling thread until either this Thread has
terminated or the stated number of milliseconds elapse.
|
void |
Thread.join(long millis,
int nanos)
join(millis,nanos) blocks the calling thread until either this Thread *
has terminated or the stated time elapses.
|
static void |
Thread.sleep(long millis)
sleep(millis) causes the calling thread to "sleep" for
the specified length of time.
|
static void |
Thread.sleep(long millis,
int nanos)
sleep(millis,nanos) causes the calling thread to "sleep" for
the specified length of time.
|
void |
Object.wait()
Wait forever.
|
void |
Object.wait(long millis)
Wait for x ms, 0 ns.
|
void |
Object.wait(long millis,
int nanos)
Wait on a monitor.
|
abstract int |
Process.waitFor() |
Modifier and Type | Method and Description |
---|---|
Reference |
ReferenceQueue.remove() |
Reference |
ReferenceQueue.remove(long timeout) |