Thread | SoloLearn: Learn to code for FREE!

+1

Thread

Who can show me the example with threads in java when one thread waits until another thread executed(with join or wait or smth). Thank you!

4/13/2018 8:47:38 PM

Imron Gamidli

3 Answers

New Answer

+6

Disqus.com

+2

Hi Imron Gamidli, Here is an example of a thread in which we are describing waiting state of a thread. Hope you like it. https://javagoal.com/thread-lifecycle-and-its-states/

+1

Synchronous threads, rather than asynchronous then? Here's a tutorial for this, with live demos: https://www.tutorialspoint.com/java/java_thread_synchronization.htm