Thread

Constants

  • NORM_PRIORITY = 5 (Default priority)
  • MAX_PRIORITY = 10
  • MIN_PRIORITY = 1

Methods

  • Runnable.run()
  • start(): Starts thread execution - JVM calls run()
  • sleep(ms): Causes the thread to sleep for specified milliseconds.
  • join(): Waits for the thread to die.
  • getPriority(): Returns priority of thread
  • setPriority(int): changes priority of a thread
  • Object.wait(): stops the function until notified
  • Object.notify(): notifies other threads

Backlinks