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

When should we create our own custom exception classes?

1058


What advantage do java's layout managers provide over traditional windowing systems?

1019


What is an anonymous class in java?

1162


Differences between external iteration and internal iteration?

1212


What is multithreading and its advantages?

1127


What is the purpose of interface?

1045


What is return keyword in java?

1107


What are the access modifiers in java?

1094


Difference between class#getinstance() and new operator ?

1276


what is meant by Garbage collection?

1147


What is the flag in java?

1110


How can we make string upper case or lower case?

1139


What's the default access specifier for variables and methods of a class?

1166


Difference between object instantiation and construction ?

1112


What is an immutable object? How do you create one in java?

1105