print() inside thread outputs wrong value
print() inside thread outputs wrong value Question: I’m trying to recreate a stupid idea called sleep sort, however the output is far from expected. I am expecting 0 1 2 3 5 However I get 0 5 5 5 5 …which is wierd because the thread does: sleep for (item) seconds and then print that …
Total answers: 1