Report question

Question: How can I make sure main thread ends after all other threads ends?