1) There are 10 different threads in runnable state. Each
having priority 1 to 10. How does the CPU schedules or
executes these threads?
Answer Posted / shiv
At any given time the highest priority thread will always
be in a execution state. if there are more than one threads
with same priority then JVM decides which one should be
executed first. Thus if the priority is from 1..10 the they
will be scheduled for execution in a reverse manner.
| Is This Answer Correct ? | 10 Yes | 4 No |
Post New Answer View All Answers
What is the difference between static and non-static variables in java programming?
What do you understand by final value?
Why set do not allow duplicates in java?
How can we create a thread in java?
What is loop in java?
What is function and its uses?
what is the messsage u r going to get from an objectoriented programing?
Why are variables important in research?
Can a singleton class be inherited?
Why chararray() is preferred over string to store the password?
What is bytecode in java ?
What is a double?
How to reverse string in java?
List some features of the abstract class.
Name few java 8 annotations ?