Thread
Constants
NORM_PRIORITY= 5 (Default priority)MAX_PRIORITY= 10MIN_PRIORITY= 1
Methods
- Runnable.
run() start(): Starts thread execution - JVM callsrun()sleep(ms): Causes the thread to sleep for specified milliseconds.join(): Waits for the thread to die.getPriority(): Returns priority of threadsetPriority(int): changes priority of a thread- Object.
wait(): stops the function until notified - Object.
notify(): notifies other threads
Backlinks