Is there a simple way to use Multiprocessing to do the equivalent of this?
for sim in sim_list: sim.run()
where the elements of sim_list
For those who will be working with large data sets, an iterable would be your solution here:
iterable
import multiprocessing as mp pool = mp.Pool(mp.cpu_count()) pool.imap(sim.start, sim_list)