daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Mar 19th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import time
  2.  
  3. def oi():
  4.     while True:
  5.         print("oi")
  6.         time.sleep(1)
  7.  
  8. oi()
  9.      
  10. oi
  11. oi
  12.      
  13. import time
  14. import multiprocessing
  15.  
  16. def oi():
  17.     while True:
  18.         print("oi")
  19.         time.sleep(1)
  20.  
  21. quantidadeDeProcessos = 3
  22.  
  23. multiprocess(quantidadeDeProcessos, oi())
  24.      
  25. oi
  26. oi
  27. oi
  28. oi
  29. oi
  30. oi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top