Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Thread Execution

 
Sagar Sharma
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right. To schedule a thread for execution, the method to be used is start()
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic