What are the methods of the thread class used to schedule the threads?
Submitted by: AdministratorThe 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
Submitted by: Administrator
-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
Submitted by: Administrator
Read Online Java Multi-Threading Job Interview Questions And Answers
Top Java Multi-Threading Questions
☺ | Explain deadlock? |
☺ | What is the sleep() method Data type for the parameter? |
☺ | Explain the difference between preemptive scheduling and time slicing? |
☺ | How many threads at a time can access a monitor? |
☺ | Name the default thread at the time of starting the program? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |