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 concatenation operator in java?

1163


What is indexof in java?

1012


Explain the polymorphism principle?

1027


Is math class static in java?

1128


Is 0 a real number?

1054


what is daemon thread and which method is used to create the daemon thread? : Java thread

979


What is a marker interface?

1172


What is the scope or life time of instance variables?

1123


What is main function purpose?

1042


What are the types of collections in java?

1058


Give some features of interface?

1074


Why does it take so much time to access an applet having swing components the first time?

1932


What are thread groups?

1012


What is the difference between sleep and wait in java?

973


Name some classes present in java.util.regex package.

1038