Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Can we use static class instead of singleton?

1006


What is singletonlist in java?

918


Can we extend singleton class?

905


What do you mean by mnemonics?

1004


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

1280


What is the difference between preemptive scheduling and time slicing?

1014


Which sorting algorithm is in place?

910


What does this () mean in constructor chaining concept?

1063


What is runtime polymorphism or dynamic method dispatch?

980


How do you reverse sort a list in java?

903


Why main function is static?

1154


What are selection structures?

943


Is oracle java 11 free?

906


Explain about interrupt() method of thread class ?

1074


What is the length of a string?

967