diff --git a/Uptated-Prototype/Threading-test.py b/Uptated-Prototype/Threading-test.py index a0e6b6d..8b9fec0 100644 --- a/Uptated-Prototype/Threading-test.py +++ b/Uptated-Prototype/Threading-test.py @@ -8,13 +8,13 @@ def TestThreadOne(): codedone = True def TestThreadTwo(): - testcounter = 0 - while not codedone: + testcounter = 0 + while not codedone: time.sleep(1) - testcounter += 1 - print(testcounter) - if testcounter >= 30 - break + testcounter += 1 + print(testcounter) + if testcounter >= 10: + break t1 = threading.Thread(target=TestThreadOne, daemon=False) t2 = threading.Thread(target=TestThreadTwo, daemon=True)