Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.py
- -------------------------
- from multiprocessing import Process
- import time
- def a():
- while 1:
- time.sleep(1)
- print("hey")
- process = Process(target=a)
- #some codes here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement