Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import threading
- import time
- import os
- def run_test():
- print("run_test pid : " + str(os.getpid()))
- while True:
- time.sleep(100)
- print("main pid : " + str(os.getpid()))
- thread1 = threading.Thread(target=run_test)
- thread1.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement