This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!