java join is called before thread starts

后端 未结 0 521
礼貌的吻别
礼貌的吻别 2020-12-04 09:08

I found my problem. I was starting the thread incorrectly.

Old code:

new Thread(t[i]).start();
t[i].join();

New code:

t         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题