• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sleeping Threads  RSS feed

 
Jonny Kidd
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a couple of quick questions that I hope will be quite easy to answer...!

1. If a parent thread is sleeping, will this have any impact on any child threads ? The child threads run independently of the parent thread.

2. If a parent thread spawns child threads, do the child threads die if the parent thread completes ?
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, in both cases.
 
Jonny Kidd
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Excellent, thanks for that Pete.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!