Python NotImplementedError: pool objects cannot be passed between processes
I'm trying to deliver work when a page is appended to the pages list, but my code output returns a NotImplementedError. Here is the code with what I'm trying to do: Code: from multiprocessing import Pool, current_process import time import random import copy_reg import types import threading class PageControler(object): def __init__(self): self.nProcess = 3 self.pages = [1,2,3,4,5,6,7,8,9,10] self.manageWork() def manageWork(self): self.pool = Pool(processes=self.nProcess) time.sleep(2) work_queue = threading.Thread(target=self.modifyQueue) work_queue.start() #pool.close() #pool.join() def