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

when we applied start()method on a thread ,how does it know
that to execute run()method on that object?

Answer Posted / sushant

Thread in a java inbuilt Object.
So if you are implementing threads in your system by using
Thread class or runnable interface, the JVM will look at
that and keep an eye on your code. As soon as you call the
start method it will go and call the run method on its own.
The funda here is that this is something that the JVM if
fully responsible of handling.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about thread synchronization inside a monitor?

2547


What is the difference between the font and fontmetrics classes?

1157


What is table mutation and how do you avoid it?

2469


What are the difference between RMI and CORBA?

1116


what is handle?

2371


Which are the different segments of memory?

1083


Can you control when passivation occurs?

1065


Explain what is orm?

1108


What is the diffrence between a local-tx-datasource and a xa-datasource?

1054


How can I scroll through list of pages like the search results in google?

969


Difference between DurableSubscription and non- DurableSubscription?

2196


what are the advantages of JTA over JTS?

2209


whats is mean by connectionpooling

2013


What modifiers may be used with an inner class that is a member of an outer class?

1064


What’s jboss cache in short?

1123