I am using python multiprocessing code like this.
from mulitprocessing.dummy import Pool as ThreadPool pool = ThreadPool(8) pooled_result = pool.map(my_function