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

What is a line separator in java?

974


Can we execute a program without main?

1014


What is a key in java?

974


What are the pillars of java?

918


Where are the local variables stored?

1070


What does 0 mean in boolean?

975


What is the difference between length and size in java?

986


Can we serialize static variables in java?

1082


What is the difference between jvm and jre? What is an interface?

1091


What is the benefit of abstract class?

942


What are the important features of Java 11 release?

1109


Which of the following classes will have more memory allocated?

1014


When should the method invokelater() be used?

1015


Explain the scope or life time of class variables or static variables?

984


How does predicate work in java?

975