🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Starts the thread
  2. B.Joins two threads into one
  3. C.Stops the thread immediately
  4. 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 →