multiprocessing

Pool

class multiprocessing.Pool(worker_count)
pool = Pool(2)
class ApplyResult
get()

возвращает значение результата

apply(func, args)
result = [pool.apply(some_func, args=(num, )) for num in [1, 2, 3]]
apply_async(func, args)

Возвращает ApplyResult

result = [pool.apply_async(some_func, args=(num, )) for num in [1, 2, 3]]
close()
pool.close()
join()
pool.join()
map(func, iterable)
pool.map(some_func, [1,2,3])
starmap_async()

current_process

multiprocessing.current_process()

Возвращает текущий процесс