i = 1 while i<160000: b = int(i) + 3000 threading.Thread(target=runa,args=(i,b).start() print(i,b) i = int(i) + 3000