Multiple choice technology programming languages

what does join() do?

  1. A thread gets a default priority

  2. cause the currently running thread to move back to runnable so that a thread of the same priority can have a chance.

  3. Guaranteed to cause the current thread to stop executing for at least the specified sleep duration

  4. Guaranteed to cause the current thread to stop executing until the thread it joins with completes

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

join() makes the current thread wait until the specified thread completes execution. The other options describe priority behavior (A), yielding (B), and sleep behavior (C) - none match join()