def thread_pool(item): pool = thpool(20) pool.map(get_detail, item) pool.close() pool.join()
def thread_pool(item): pool = thpool(6) pool.map(parse_html, item) pool.close() pool.join()
def thread_pool(item): pool = thpool(3) pool.map(get_txt, item) pool.close() pool.join()
def thread_pool(item): pool = thpool(8) pool.map(get_mp3, item) pool.close() pool.join()