Update Uptated-Prototype/Threading-test.py
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user