Sail E0 Webinar
Question
Which of these method can be used to make the main thread to be executed last among all the threads?
Options:
A .  stop()
B .  sleep()
C .  join()
D .  call()
Answer: Option B


By calling sleep() within main(), with long enough delay to ensure that all child threads terminate prior to the main thread.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers