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

How big is a gigabyte?

1103


What is a method vs function?

1093


How big is a 32 bit integer?

1095


I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?

1141


What is t type java?

1105


How can we create a synchronized collection from given collection?

1125


what is an objects lock and which objects have locks? : Java thread

1074


What does it mean that strings are immutable?

1184


What are the types of exceptions?

1104


Why do we use bufferedreader?

1051


How do you start a new line in java?

1036


What are different access specifiers in java?

1058


Can we inherit a class with private constructor?

1177


What are the types of arrays in java?

1133


What is difference between class and object in java?

1131