filmov
tv
What is a java thread scheduler java interview question and answer

Показать описание
UPLOAD YOUR RESUME IN 1 MINUTE ! ! !
What is a java thread scheduler ? Java Interview Question and Answers.
What is java thread scheduler ?
The java thread scheduler is the part of the JVM that decides which thread should run at any given moment.
It also decides to take threads out of the run state.
Any thread in the runnable state can be chosen by the scheduler to be the running thread.
The order in which runnable threads are chosen to run is not guaranteed.
Some of the methods that can influence thread scheduling are
sleep()
yield()
join()
setPriority()