I'm a little bit confused.
I'm trying to start a thread in a loop, i.e.:
while True:
my_thread.start()
I'm a little confused because I've had it working with my_thread.run()
, but when I swapped it to start() it fails to start more than one thread. Is my .run() not actually a separate thread, and if not what should I be doing? Lastly, can I pass variables into start()?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…