Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to run single loop iterations on same time in python

from multiprocessing.dummy import Pool as ThreadPool
pool = ThreadPool(4)
results = pool.map(my_function, my_array)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #run #single #loop #iterations #time #python
ADD COMMENT
Topic
Name
3+4 =