Skip to main content
edited tags; edited tags
Link
Source Link
andandandand
  • 22.4k
  • 64
  • 175
  • 273

Understanding join()

Suppose a thread A is running. I have another thread, B, who's not. B has been started, is on runnable state.

What happens if I call: B.join()?

Will it suspend the execution of A or will it wait for A's run() method to complete?