Java Multi-Threading Question: Download Questions PDF
What are the methods of the thread class used to schedule the threads?
![Java Multi-Threading Interview Answer Java Multi-Threading Interview Question](https://globalguideline.com/public/images/interview/33.png)
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
Download Java Multi-Threading Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain the method of Runnable interface with example? | What is thread Local variable? |