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 finally and finalize in java?
What does nextint () do in java?
How to make a read-only class in java?
How java is similar to c?
What are recursive functions?
Explain java thread life cycle.
How to create a custom exception?
What is java life cycle?
Can we return null in java?
How do you convert int to char in java?
I want to persist data of objects for later use. What is the best approach to do so?
What is the difference between compare and compareto in java?
What is the abstraction?
Will set allow duplicates in java?
Can we able to pass objects as an arguments in java?