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 finally and finalize in java?

1035


What does nextint () do in java?

946


How to make a read-only class in java?

1100


How java is similar to c?

1015


What are recursive functions?

1003


Explain java thread life cycle.

977


How to create a custom exception?

960


What is java life cycle?

957


Can we return null in java?

1089


How do you convert int to char in java?

1036


I want to persist data of objects for later use. What is the best approach to do so?

1022


What is the difference between compare and compareto in java?

969


What is the abstraction?

978


Will set allow duplicates in java?

938


Can we able to pass objects as an arguments in java?

982