0
import _thread
def filho(tid):
print('Ola da thread', tid)
def pai():
i = 0
while True:
i += 1
_thread.start_new_thread(filho, (i,))
if input() == 'q': break
pai()
Is there any more pythonic way to write the same code?
What exactly should your code do?
– Woss
@Anderson Carlos Woss : the idea is to perform the functions father and son in parallel!
– Ed S