Tuesday, 19 April 2011

What are the methods of the thread class used to schedule the threads?

The methods are as follows:
  • public static void sleep(long millis) throws InterruptedException
  • public static void yield()
  • public final void join() throws InterruptedException
  • public final void setPriority(int priority)
  • public final void wait() throws InterruptedException
  • public final void notify()
  • public final void notifyAll()

No comments:

Post a Comment