Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Threads and Cert. Exam  RSS feed

 
Frank Tollenaar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just took the certification exam and missed by 3 questions. One questions about threads was: Does the thread stop running when the program exits the main() method? Can someone give me the answer to this? Thanks.
 
josephine chen
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes
 
KMukhar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What thread?
The thread main stops running when main() is exited. However, if you have created other (nondaemon) threads, those threads will continue to run.
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep! Read the question carefully, for the next candidate!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!