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
How does class forname work in java?
What are the different tags provided in jstl?
What is a top level class in java?
Why are global variables used?
How do you detect memory leaks?
What are the 3 types of loops in java?
What is the purpose of a volatile variable?
Can we convert list to set in java?
What is cr keyboard?
What is string :: npos?
What is variable in java?
What is null statement?
What is difference between c++ and java ?
Is there any way to find whether software installed in the
system is registered by just providing the .exe file?
I have tried the following code but its just displaying the
directory structure in the registry.
Here the code :
package com.msi.intaller;
import java.util.Iterator;
import ca.beq.util.win32.registry.RegistryKey;
import ca.beq.util.win32.registry.RootKey;
public class RegistryFinder {
public static void main(String... args) throws Exception
{
RegistryKey.initialize(RegistryFinder.class.getResource("jRe
gistryKey.dll").getFile());
RegistryKey key = new RegistryKey(RootKey.HKLM,
"Software\\ODBC");
for (Iterator
Can we extend singleton class?