Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- def oi():
- while True:
- print("oi")
- time.sleep(1)
- oi()
- oi
- oi
- import time
- import multiprocessing
- def oi():
- while True:
- print("oi")
- time.sleep(1)
- quantidadeDeProcessos = 3
- multiprocess(quantidadeDeProcessos, oi())
- oi
- oi
- oi
- oi
- oi
- oi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement