Which of these methods can be used to have the main thread run last among all the threads?
A. pause ()
B. sleep ()
C. join ()
D. phone call ()
Answer:B
Which of these methods can be used to have the main thread run last among all the threads?
A. pause () B. sleep () C. join () D. phone call ()
Explanation: By executing sleep() within main() with a long enough delay to ensure that all child threads exit before the main thread.