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
Can we create our own wrapper class in java?
State the significance of public, private, protected class?
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread
Explain the importance of throws keyword in java?
What is the difference between hashset and treeset in java?
java Technical questions asked by JPMC
How can we make copy of a java object?
What is a function in java?
What is a container in a gui?
Is the empty set a singleton?
What is a boolean expression in java?
Are static members inherited to sub classes?
What is the difference in between cpp and java? Can u explain in detail?
Can a constructor be private and how are this() and super() method used with constructor?
What is the meaning of nullable?