看板 Python 關於我們 聯絡資訊
http://i.imgur.com/jgOudU7.jpg 我想依序印出 T1 start All done 但是好像反過來了 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 39.12.163.216 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1476189562.A.E61.html
AlanSung: 已經是 thread 了,你要 control 就加個 sleep() 10/11 21:28
Falldog: thread.join() ? 10/11 21:45
IMPOSSIBLEr: 你多跑幾次可能就會出現你想要的結果了,或是在pri 10/11 22:15
IMPOSSIBLEr: nt那行前面呼叫added_thread.join() 10/11 22:15
dinoptt1993: 我是想說為什麼all done在第一個... 10/11 23:25
james732: 沒有額外控制的話,Thread的執行順序是難以預料的 10/12 13:30