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

Is double bigger than float?

912


What is update method called?

1089


What are the characteristics of java?

981


What state is a thread in when it is executing?

903


What is defined as false sharing in the context of multithreading?

982


Tell us something about an iterator.

898


In java, what is the difference between method overloading and method overriding?

1048


Is it possible to override the main method?

927


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

1043


What are the advantages of unicode?

969


Is integer passed by reference in java?

971


What defines function?

918


Can you sort a string in java?

856


What is the formula to calculate percentage?

965


Differentiate between == and equals().

997