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 a line separator in java?
Can we execute a program without main?
What is a key in java?
What are the pillars of java?
Where are the local variables stored?
What does 0 mean in boolean?
What is the difference between length and size in java?
Can we serialize static variables in java?
What is the difference between jvm and jre? What is an interface?
What is the benefit of abstract class?
What are the important features of Java 11 release?
Which of the following classes will have more memory allocated?
When should the method invokelater() be used?
Explain the scope or life time of class variables or static variables?
How does predicate work in java?