class Worker(Process):

    def __init__(self, queue):
        super(Worker, self).__init__()
self.queue = queue

def run(self):
    print('Worker started')
print('Computing things!')
for data in iter(self.queue.get, None):
    pass
Пул Python с рабочими процессами