This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
What is the name of the method used to schedule a thread for execution and that for executing a thread? init(); start(); run(); resume(); sleep(); feel it is start() and run() simultaneously.
'Shweta', PROPER NAMES ARE NOW REQUIRED!! Read this post for more details. Javaranch appreciates your cooperation to comply with the official naming policy. Ajith
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
you can not execute a thread. Calling start will put it in runnable state but calling 'run' will just use that method in the current thread. You can think of the 'thready' code existing in 'start' only.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.