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 / 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


Please Help Members By Posting Answers For Below Questions

What is the difference between replace and replace all?

946


What are different data types?

961


What is the difference between abstract classes and interfaces?

974


What is a super method?

927


What is the reflection?

945


What is meant by design patterns?

981


What is run time allocation?

977


What is the format specifier?

880


Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?

1037


Which number is denoted by leading zero in java?

1195


What is substring 1 in java?

1063


Differentiate between stringbuffer and string?

991


why would you use a synchronized block vs. Synchronized method? : Java thread

902


How do you find the maximum number from an array without comparing and sorting?

1073


What are dot operator queries?

1058