Google News
logo
Java Multithreading - Interview Questions
What is Thread Scheduler in java?
In Java, when we create the threads, they are supervised with the help of a Thread Scheduler, which is the part of JVM. Thread scheduler is only responsible for deciding which thread should be executed. Thread scheduler uses two mechanisms for scheduling the threads: Preemptive and Time Slicing.
 
Java thread scheduler also works for deciding the following for a thread :

* It selects the priority of the thread.
* It determines the waiting time for a thread
* It checks the Nature of thread
Advertisement