Python 3.5 multiprocessing pool and queue don't work
问题 I encounter a multiprocessing problem. The code is included below. The code can execute as expected, but when uncommenting self.queue = multiprocessing.Queue() , this program will exit immediately and it seems that the subprocess can't be started successfully. I don't know what happened. Could someone help me out? Many Thanks! import multiprocessing import time class Test: def __init__(self): self.pool = multiprocessing.Pool(1) #self.queue = multiprocessing.Queue() def subprocess(self): for i