If I have a class whose run () method falls asleep for 1000 ms, then type βThreadβ. And I start this thread from my main program, and then my main program immediately sleeps for 2000 ms, and then prints the "Main stream".
Is Thread Printing Guaranteed Before the Main Thread?
java
Saobi
source share