okay so i'm trying to make a speedtest in python and the only problem i am having is that i cant figure out how to make the download speed threads finish before starting the upload speed threads. i can provide some of my code:
t1 = Thread(target= dload)
t2 = Thread(target= testo)
t3 = Thread(target= uload)
t4 = Thread(target= testo2)
t2.daemon=True
t4.daemon=True
t1.start()
t2.start()
t3.start()
t4.start()
i need t1
and t2
to end first, and then t3
and t4
should start. t2
is a daemon here because i want it to end as soon as t1
is done. forgot to mention that beforehand. i am completely new to threading so if this is really wrong please forgive me.