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 / karthik
We are not sure about when a thread runs it depends upon the
thread scheduler which can able to run a thread at any time
so the priorities are not sure even if we use the
setpriority method for a thread : ref scjp book thread chapter
| Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
what is session in java?
Can anonymous class have constructor?
What are inbuilt functions in java?
Explain java thread life cycle.
List some important features of java 10 release?
What is the difference between the font and fontmetrics classes in java programming?
If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
What is the argument in java?
What is indexof?
What is string intern in java?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
Explain the difference between comparator and comparable in java?
Say any two properties in beans?
Explain importance of inheritance in java?
What is a void method?