What is a task's priority and how is it used in scheduling?

What is a task's priority and how is it used in scheduling?

A scheduler uses the priorities of a task to determine its execution. Priorities can be high or low determined by the integer values that are assigned to the tasks.

Example:
JVM selects to run a Runnable thread with the highest priority.

All Java threads have a priority in the range 1-10.

Top priority is 10, lowest priority is 1.Normal

priority ie. priority by default is 5.
Can we have parameterized constructors in Java?
Can we have parameterized constructors in Java? - Yes, we can have. This is also called as constructor overloading.....
JSP Interview Questions and Answers - Freshers & Experienced!
JSP interview questions with answers for freshers and experienced, JSP interview FAQ - In this series, we have covered all about JSP and answered the questions that might be asked during an interview.
What is JSP?
What is JSP? - JavaServerPages is server side component in a web application, used to dynamically generate HTML / XML documents...
Post your comment