⟩ What are the methods of the thread class used to schedule the threads?
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