Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = Pool(processes=4, maxtasksperchild=3)
- while True:
- dbs = listdbs()
- processdb(dbs[0])
- p.map(processdb, dbs, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement