Java Multi-Threading Question:
What are the methods of the thread class used to schedule the threads?

Answer:
The methods of the thread class used to schedule the threads are as follows:
-public final void join() throws InterruptedException
-public final void notify()
-public final void notifyAll()
-public static void yield()
-public final void setPriority(int priority)
-public static void sleep(long millis) throws InterruptedException
-public final void wait() throws InterruptedException
-public final void join() throws InterruptedException
-public final void notify()
-public final void notifyAll()
-public static void yield()
-public final void setPriority(int priority)
-public static void sleep(long millis) throws InterruptedException
-public final void wait() throws InterruptedException
Previous Question | Next Question |
Explain the method of Runnable interface with example? | What is thread Local variable? |