Is it that the main thread runs after the thread t ?
After thread t is started, which thread will run is unpreditable at any given time.
If that is the case then,since the t THread object is created in the main Thread itself
how would thread t run since main thread runs after it.
When thread t is started, both main and t are running concurrently, which one is given the time to execute is unpreditable.
The only predictablilty in this case is that m2 will always be last due to the t.join(). The others before m2 can be in any order.
Regards