adspace
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
explain different ways of using thread? : Java thread
Explain public static void main(string args[]) in java.
What is a classloader in java?
What is the difference between break and continue statements?
What is a constructor overloading in java?
What is java string pool?
What are the differences between heap and stack memory in java?
What do you mean by an interface in java?
How to create a base64 decoder in java8?
What is parsing in java?
Differentiate between static and non-static methods in java.
Realized?
Is minecraft 1.15 out?
What is the difference between equals() and == in java?
What is an object in java and how is it created?