This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Thread Execution Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Thread Execution" Watch "Thread Execution" New topic
Author

Thread Execution

Sagar Sharma
Ranch Hand

Joined: Aug 31, 2000
Posts: 92
hi,
I just got through a question in a mock exam:
Q) What is the method used to schedule a thread for execution?
My ans. is start()
But they have given run()
I thought start() is used for scheduling the execution while run() is the execution of the thread.
Pls clarify!!!

Thanks

Sagar
Viji Bharat
Ranch Hand

Joined: Sep 18, 2000
Posts: 101
You are right. To schedule a thread for execution, the method to be used is start()
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Thread Execution
 
Similar Threads
Thread Execution
Thread
threads - start() & run()
Thread Execution
Create and launch a new thread