kindly expalin the following doubt on run method

can you explain how run method is called and who calls the run method.
Also can you explain that if a main method has one more thread then how the scheduling is done.How the priority is set for main and the other thread created. If the scheduling is based on platform then does that mean all the windows xp machine and all unix machine will have similar outputs.
I am not getting that does java also have some scheduling mechanism and how run method is called and scheduling is implemented in java.
How does the program know that scheduling has to be implemented now as the run method has been called.
May be the queston I have framed seems to be vague but please revert back incase you do not understand the question also.

9 Years
Discussion Span
Last Post by masijade

Thread's start method calls run.

The scheduling is handled by the OS (AFAIK).

can u kindly elaborate on AFAIK...
It is handled by OS that is right but does not java do anything to it....

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.