Update Uptated-Prototype/Threading-test.py

This commit is contained in:
2025-11-16 19:10:08 -08:00
parent b8e60333d3
commit 92fcce9a84

View File

@@ -10,12 +10,12 @@ def TestThreadOne():
def TestThreadTwo():
testcounter = 0
while not codedone:
time.sleep(1)
time.sleep(1)
testcounter += 1
print(testcounter)
if testcounter >= 30:
break
t1 = threading.Thread(target=TestThreadOne, daemon=False)
t2 = threading.Thread(target=TestThreadTwo, daemon=True)