Update Uptated-Prototype/Threading-test.py

This commit is contained in:
2025-11-16 18:48:42 -08:00
parent d39e867b3e
commit 984c2dc4d0

View File

@@ -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)