I have a problem using threading.Thread(), so I have a question.
The following simple script prints an array by looping it for:
If you run worker() as it is, it will print from 0th to 0th in the array, but
Thread (target=worker) will produce the output in reverse order.
(By the way, if the array is set to range (5000), the order may become messy.(Not sure every time)
Is there a problem with the configuration?
Is it specific to Thread?
The environment is Windows 10, Python 2.7.
Thank you for your cooperation.
© 2022 OneMinuteCode. All rights reserved.