Advertisement
Guest User

Untitled

a guest
Oct 21st, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. p = Pool(processes=4, maxtasksperchild=3)
  2.  
  3.  
  4. while True:
  5.     dbs = listdbs()
  6.     processdb(dbs[0])
  7.     p.map(processdb, dbs, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement