python start a function in a thread code example
Example: python thread function
x = threading.Thread(target=thread_function, args=(1,), daemon=True)
x.start()
# x.join()
x = threading.Thread(target=thread_function, args=(1,), daemon=True)
x.start()
# x.join()