Multiprocessing not working
问题 I have use all types of multiprocessing Pool but still the program only using single core (available=8).Any help will be appreciated and thanks in advance. import multiprocessing from multiprocessing import Pool class pdf_gen(): def __init__(self): pdf = self.pdf = FPDF() pdf.set_auto_page_break(True,0.1) def get_data_from_mysql(self) : pdf = self.pdf # connection is established and result is stored in 'res'. dup = [] dup.insert(0,res) z = tuple(dup) pool = multiprocessing.Pool