from utime import sleep_ms, sleep, time
import _thread
def test0(p1,p2):
print("This is test 0 ")
count = 0
while True:
print("test0", count)
count+=1
sleep(1)
def test1(p1,p2):
print("This is test 1 ")
cnt = 0
while True:
sleep(2)
print("test1", cnt)
cnt+=1
_thread.stack_size(40*1024)
_thread.start_new_thread(test0, (1, 0))
print()
_thread.start_new_thread(test1, (1, 1))
print("Threads started...")