← Quiz: Threads, Processes and the GIL: all 10 questions
Quiz: Threads, Processes and the GIL · Question 7 of 10
What does t.join() do for a thread t?
What does t.join() do for a thread t?
- A.Starts the thread
- B.Joins two threads into one
- C.Stops the thread immediately
- D.Waits until the thread has finished
Answer & explanation
Correct answer: Waits until the thread has finished
Call start() to begin a thread and join() to wait for it.
Can you get the rest right without peeking?
Take the timed Quiz: Threads, Processes and the GIL quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →